Jump to content
Search Community

How you can improve the animation of the transition between shapes?

.mdl test
Moderator Tag

Go to solution Solved by mikel,

Recommended Posts

17 hours ago, mikel said:

Hey @.mdl,

 

Try a specific position for the SVGs.

 


svg {
  position:absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
}

 

Your code could be simplified a lot more.

 

 

 

 

Happy scrolling ...

Mikel

@mikel Thanks a lot for this example!

  • Like 1
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...