Jump to content
Search Community

How to use relative units (vh, wv)

nenad.s test
Moderator Tag

Recommended Posts

Hi guys, short and sweet:

How do I make a tween use relative units instead of px?

In a set of chained tweens, I'd like one to use 50vw for the 'y' transform:

.to(".target", { y: 50vh} )

Still a noobie, can't find anything yet in the docs.

 

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...