Advertisement
srikat

Untitled

Feb 21st, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var entries = [];
  2.  
  3. // Create an animation for each entry.
  4. Array.prototype.forEach.call(document.querySelector('.entry'), function(elem, i) {
  5. // Create an instance for the current element in an array.
  6. // We start the animation later using the instances from the array.
  7. entries.push(basicScroll.create({
  8. elem: elem,
  9. from: 'top-bottom',
  10. to: '100px',
  11. props: {
  12. '--ty': {
  13. from: '300px',
  14. to: '0',
  15. direct: true
  16. }
  17. }
  18. }));
  19. });
  20.  
  21. entries.forEach(function (entry) {
  22. return entry.start();
  23. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement