Coder Social home page Coder Social logo

Comments (20)

bluebill1049 avatar bluebill1049 commented on August 20, 2024

hey Gunnar,

can you share your code? looks like it's probably an svg view port issue?

cheers
bill

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

Please read the documentation https://react-simple-animate.now.sh/animate-keyframes

You can do code like below

<AnimateKeyframes
play
iterationCount="infinite"
direction="alternate"
durationSeconds={10}
playState="running"
keyframes={[
'transform: rotateX(0) rotateY(0) rotateZ(0)',
'transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg)',
]}

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

any chance you can supply me with your svg? or is it just a react logo?

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

it's a css problem, there is no width for your img. hence it fly off the screen. make sure you inspect the element and check the attribute on your element. if you could leave the repo with a star would be really nice to support the package. thanks ❤️

https://codesandbox.io/s/6wyp4knkj3

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

you happy to close this issue?

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

thank you very much Gunnar, leave a star if you find it useful 🙏

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

Why u couldn’t nest? Can u share the code?

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

do you have an error by nest them? in theory it should worked

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

I see the problem please refer to my code below

https://codesandbox.io/s/6wyp4knkj3

you can only have one animation attribute on one element, this is standard css animation.

img {
  animation: "2s linear 0s infinite alternate none running RSI-m25o8kbye";
  animation: "2s linear 0s infinite alternate none running RSI-m25o8kby2";
}

see above if you have two the second one will overwrite. so solution is in my code example as well, take a look and play around with it.

thanks
bill

from react-simple-animate.

gunnarsireus avatar gunnarsireus commented on August 20, 2024

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

not sure about drag and drop, but yea redux is good

from react-simple-animate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.