Advertisement
Guest User

Untitled

a guest
May 26th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. --- a/product-card.framerfx/code/Card.tsx
  2. +++ b/product-card.framerfx/code/Card.tsx
  3. @@ -1,10 +1,19 @@
  4. import * as React from 'react'
  5. import { Frame, useCycle, Stack } from 'framer'
  6. +import { url } from 'framer/resource'
  7.  
  8. export function Card() {
  9. return (
  10. <Stack gap={0} width="100%" height="100%" background="pink">
  11. - <Frame background="green" width="100%" height="60%" />
  12. + <Frame
  13. + // background="green"
  14. +
  15. + width="100%"
  16. + height="60%"
  17. + background={
  18. + 'center / contain no-repeat url(' + url('/images/a.png') + ')'
  19. + }
  20. + />
  21. <Frame background="blue" width="100%" height="40%" />
  22. </Stack>
  23. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement