Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import React from "react";
  2. import { motion } from "framer-motion";
  3.  
  4. const styles = {
  5. background: "#035ee8",
  6. borderRadius: 30,
  7. width: 100,
  8. height: 100,
  9. margin: "auto"
  10. };
  11.  
  12. export const Pop = () => (
  13. <motion.div
  14. style={styles}
  15. animate={{
  16. scale: [1, 2, 2, 1, 1],
  17. rotate: [0, 160, 270, 360, 0],
  18. borderRadius: ["20%", "50%", "20%", "50%", "20%"],
  19. }}
  20. transition={{ duration: 2 }}
  21. />
  22. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement