Jump to content
Search Community

Push text on change element width

_Greg _ test
Moderator Tag

Go to solution Solved by nico fonseca,

Recommended Posts

Hi!

I'm a little stuck.
I want to make an animation:
1. If the blue rectangle decreases to the position shown on the image + gap - we begin to move the inscription at the same speed with which the rectangle decreases.
2. The second inscription also waits until the rectangle reaches the gap mark

Screenshot-2021-09-13-172653.jpg.1c749b7813ec016ffbccefcee1d84d35.jpg

 

What happened is very similar, but not the same.
Not sure if changing the coordinate when using onUpdate will not affect performance

See the Pen xxrrXoG?editors=0010 by gregOnCodePen (@gregOnCodePen) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...