






Take a look at some of my designs
Water Drop
Here I'm creating the drop with a CSS drop shadow and border radius, and setting up the 3d object from the perspective that makes it seem right in front of the page.
Now I'm going to add keyframes to the waterdrop
Now I'll add an animation to the text
Light-Switch
I create both images on photoshop, then import and position them over top of one another.
Now, I add a function to toggle the images opacity, and I start the if statement with an argument checking for an absent .hidden toggle since the default image is lighton (without the toggle).
I want to only switch the lightbulb if I click on it, not if I click it's img element or parent div, so I use the .light-toggle div as the switch.
Lastly, I add a text overlay and attach another function to the light-toggle click event listener which will toggle the attached CSS files.