Creating Web Animations by Kirupa Chinnathambi

Creating Web Animations by Kirupa Chinnathambi

Author:Kirupa Chinnathambi
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media
Published: 2017-03-31T04:00:00+00:00


<div class="show" id="flyoutMenu"> <h2><a href="#">Home</a></h2> <h2><a href="#">About</a></h2> <h2><a href="#">Contact</a></h2> <h2><a href="#">Search</a></h2> </div>

The reason we do this is to allow the .show style rule we added earlier to become active on our menu element. If you recall, in our CSS, our menu’s default horizontal position is -100vw:

#flyoutMenu { width: 100vw; height: 100vh; background-color: #FFE600; position: fixed; top: 0; left: 0; transform: translate3d(-100vw, 0, 0); transition: transform .3s cubic-bezier(0, .52, 0, 1); }

After we get the .show style rule to apply on our menu, we set the new horizontal position to 0vw:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.