Giter Site home page Giter Site logo

Comments (7)

oblador avatar oblador commented on August 11, 2024

Do you mean that it line wraps? Can you post a gif of the effect with the image and the code you are failing with?

from react-native-animatable.

ackdav avatar ackdav commented on August 11, 2024

ah lol yes the correct way of saying that would be it line wraps.. English is not my first language 😄

text-forming

something like:

<Animatable.Text
             transition={['marginTop', 'marginLeft']}
             duration={500}
             style={this.state.target}> Activate your app </Animatable.Text>
this.state={
      target: {
                 marginTop: windowSize.height/2.5,
                 marginLeft: windowSize.width*2,
             }
const animationSequence = [
         {
             func: () => this.setState({target: {marginTop: windowSize.height/2.5 }}),
             duration: 500
         },
...
executeAnimationSequence(animationSequence) {
      let duration = 0;

      animationSequence.map((animation) => {
          duration += (animation.duration + (animation.delay || 0));
          this.timeouts.push(setTimeout(animation.func, duration - animation.duration));
    });
    }

code is basically copied from here

from react-native-animatable.

oblador avatar oblador commented on August 11, 2024

Hi, you should use translateX instead if you just want to move something. Alternatively you can use the predefined animation slideInRight.

from react-native-animatable.

ackdav avatar ackdav commented on August 11, 2024

@oblador thanks! if I use slideInRight line wrapping doesn't occur. But then my previous "issue" appears again: how can I do multiple animations after another with the same object?

from react-native-animatable.

oblador avatar oblador commented on August 11, 2024

You should translate the view, not change margins as margins will change the width of the view. Try using translateX like I wrote before.

from react-native-animatable.

ackdav avatar ackdav commented on August 11, 2024

somehow can't get it to work.. same if I translate the view. I can get a transition to work when the style is coupled to a state change or similar. I want a text to slideInRight into the middle, wait a few milliseconds, translateY up and then display a few other things.

from react-native-animatable.

ackdav avatar ackdav commented on August 11, 2024

Not really solved it but good enough for the moment - designed it now differently than intended here

from react-native-animatable.

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.