Jump to content
Search Community

Missing Vendor Prefixes

rhoffmann test
Moderator Tag

Go to solution Solved by Jonathan,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I'm using GSAP to tween a few objects from { flex: 0 } to { flex: whatever }.

 

I'm well aware that flex is still in flux, but hey ... I live dangerously.

 

This works flawlessly on modern desktop browsers, but fails on mobile safari. It looks like mobile safari (latest version) still requires the -webkit- prefix.

 

From what I understand, the GSAP CSS plugin should handle vendor prefixes, but it looks like it's skipping over this one.

 

Is there a way I can specify the prefix in the meantime?

 

Edit: Added pen, click "Grow/Shrink" to make the magic happen.

See the Pen xbbdby by rjhoffmann (@rjhoffmann) on CodePen

Link to comment
Share on other sites

  • Solution

Hello rhoffmann, and Welcome to the GreenSock Forum!

 

You should be able to do something like this.. wrapping your property in quotes "-webkit-flex":

// using your timeline instance
tl.set($('.blue'), {css:{"-webkit-flex":0}});

// or using TweenLite
TweenLite.set($('.blue'), {css:{"-webkit-flex":0}});

:

Check out the GSAP CSSPlugin Docs:

 

http://greensock.com/docs/#/HTML5/GSAP/Plugins/CSSPlugin/

 

Does that help? :)

  • Like 2
Link to comment
Share on other sites

Hello rhoffmann, and Welcome to the GreenSock Forum!

 

You should be able to do something like this.. wrapping your property in quotes "-webkit-flex":

// using your timeline instance
tl.set($('.blue'), {css:{"-webkit-flex":0}});

// or using TweenLite
TweenLite.set($('.blue'), {css:{"-webkit-flex":0}});

:

Check out the GSAP CSSPlugin Docs:

 

http://greensock.com/docs/#/HTML5/GSAP/Plugins/CSSPlugin/

 

Does that help? :)

 

That appears to do the trick, thanks!

 

Can I expect automagic flex vendor prefixes to show up eventually?

Link to comment
Share on other sites

  • 9 months later...

Hello rhoffmann, and Welcome to the GreenSock Forum!

 

You should be able to do something like this.. wrapping your property in quotes "-webkit-flex":

// using your timeline instance
tl.set($('.blue'), {css:{"-webkit-flex":0}});

// or using TweenLite
TweenLite.set($('.blue'), {css:{"-webkit-flex":0}});

:

Check out the GSAP CSSPlugin Docs:

 

http://greensock.com/docs/#/HTML5/GSAP/Plugins/CSSPlugin/

 

Does that help? :)

 

Thanks for asking.

Thanks for answering.

Love GSAP more and more each day.

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