Jump to content
Search Community

Possible Bug with rem values like 3.100rem

semplicelabs test
Moderator Tag

Recommended Posts

Hi Team Greensock,

 

Not sure if this is a bug but once i use values like 3.100rem or 3.1000rem with gsap.set it looks like it makes big values (maybe 3.1 to 31, it gets bigger with every zero) out of it. We use a system that will always use 4 digits after the comma (with toFixed) so sometimes you have a value like 3.500 instead of just 3.5 which leads to problems.

 

This only happens with gsap.set but not with css. (see the codepen)

 

Thanks a lot in advance!

 

Best,

mike

See the Pen poEvRwR by paperboy (@paperboy) 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...