Advertisement
Guest User

Untitled

a guest
Aug 12th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // These are the two mixins
  2.  
  3. boat-root(selector)
  4. #{selector}
  5. animation selector $speed ease-in-out alternate infinite
  6. @keyframes {selector}
  7. {block}
  8.  
  9. boat(selector)
  10. +boat-root(selector)
  11. from
  12. transform translateX(0px)
  13. to
  14. {block}
  15.  
  16. // This is a simple one
  17. +boat(sea-Shadow)
  18. transform translateX(-6px)
  19.  
  20. // Or, if we need to define the from as well
  21. +boat-root(sea-Body)
  22. from
  23. transform translate(13px, 132px)
  24. to
  25. transform translate(12px, 132px)
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement