The way this works is that when the audio is paused you see the "animation-cover" id=myImage and when the audio is played you see the animation four-for-texas.gif. The right 70% of the audio tag is covered by the "audio-control-cover" id=hide with the left 30% covered by the triangle.png. There are six basic reqirements that MUST adhered to for this technique to work properly.
- The "animation-cover" must be the same size as the "animation image".
- The "animation-cover" must be the same color as the page color.
- The "audio-control-cover" must be styled to <style="width:100px;height;30px;">
- The "audio-control-cover" must be the same color as the page color.
- The triangle id #tri must have z index of -1 z-index:-1;. This places the triangle beneath the audio tag.
- Now for the real magic. The data id's #data opacity is set at 10% opacity:0.1;.
- This gives the illusion of the triangle controlling the audio and the animation as it is now visible through the audio tag.
- Source the page, take the code to my Pc Test Bed and change the body color to black to see the covers
|