Last active
August 9, 2017 13:24
-
-
Save IvanaSays/45bde9e6bf277ac2a7eed01f089b440c to your computer and use it in GitHub Desktop.
12 - Performant Animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wrapperHeight = wrapper.getBoundingClientRect().height + 'px'; | |
boxes.forEach(box => { | |
box.style.transform = “translateY(“ + wrapperHeight + “px)”; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment