Coder Social home page Coder Social logo

Comments (11)

bluebill1049 avatar bluebill1049 commented on August 20, 2024 1

hi @stroborobo,

I can definitely support object syntax which aligns with <Animate />.

for at: 0, you can use Object.entity to get the key and value.

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024 1

i think it's better to support both, then it's not a breaking change @pangpang1987

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024 1

@pangpang1987 I have tested the feature branch works great 👍

however this is not workingkeyframes={[{ 0: {opacity: 0}}, {100: {opacity: 1}}]}

I will publish what you got with a minor update first, we can patch in the next release

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

hey @pangpang1987,

Did you have the capacity to convert object into a string for AnimateKeyFrames?

basically, support

<AnimateKeyframes 
    play 
    delay={1}
    duration={10}
    iterationCount={3}
    direction="alternative"
    keyframes={[
      {transform: 'translateY(0)'},
      {transform: 'translateY(10px)'},
    ]} 
  >

currently, we support only string:

<AnimateKeyframes 
    play 
    delay={1}
    duration={10}
    iterationCount={3}
    direction="alternative"
    keyframes={[
      'transform: translateY(0)',
      'transform: translateY(10px)',
    ]} 
  >

from react-simple-animate.

stroborobo avatar stroborobo commented on August 20, 2024

@bluebill1049

for at: 0, you can use Object.entity to get the key and value

Object.entries? Absolutely, at was a brain fart anyway, I could just use maps or tuple lists instead m( But thanks for considering the main part of this request :)

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

haha no worries @stroborobo , either @pangpang1987 or I will work on that feature.

from react-simple-animate.

pangpang1987 avatar pangpang1987 commented on August 20, 2024

@bluebill1049 I can work on this. Keep the styles object.

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

thanks, heaps @pangpang1987 legend.

from react-simple-animate.

pangpang1987 avatar pangpang1987 commented on August 20, 2024

thanks, heaps @pangpang1987 legend.

Do you want to reimplement the two step senerario to use from to? Or keep the existing one?

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

https://github.com/bluebill1049/react-simple-animate/releases/tag/3.3.0

from react-simple-animate.

bluebill1049 avatar bluebill1049 commented on August 20, 2024

Looks like the above use is low. Going to close it for now

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.