This week we got to dive into CSS animations, keyframing, and parallax! Half fun, half confusing. 🙂
There are various animations within CSS and it seems to still be evolving! We dove into keyframes for the first time, which allow you to define step-by-step changes in an animation. I’m used to keyframing in the video editing world, not so much coding. Although, they are very similar which makes sense, but also fairly different with how they’re each executed.
We also looked into transitions and transforms, which are great for adding small touches of interactivity to your site. Transitions let elements smoothly change from one state to another, like a button slowly changing color when hovered over. Transforms are moreso used to rotate, scale, move, or skew elements.
Parallax was another big topic this week. In CSS, it’s a scrolling type of effect where background images move at a different speed than the foreground content. Parallax can make a website feel more dynamic and immersive, but it can also be pretty tricky to get right. In our parallax challenge assignment, I struggled a bit with image sizing and positioning, although still semi-achieved the effect which was rewarding.