I developed a sticky nav bar in lab 37 that causes an animation in the navbar when it sticks and discloses the logo. I did this by adding to the navbar a particular class whenever window.scrollY is higher than or equal to nav's y position. Then I altered the logo design to trigger the animation based on that class change. This is achieved by setting max-width to 0, but by setting it to 500px with the shift.
I've done this lab to exercise my animations javascript and css abilities. In this lab, I learned how to produce and activate animations based on the position of the Y axis scroll. In the future, I envisage using these abilities when I work on websites requiring scroll animations.
I've done this lab to exercise my animations javascript and css abilities. In this lab, I learned how to produce and activate animations based on the position of the Y axis scroll. In the future, I envisage using these abilities when I work on websites requiring scroll animations.
Comments
Post a Comment