Jump to content
Search Community

On Mobile device the page loads, the js runs, then the page zooms

samricheson test
Moderator Tag

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

Look at my code pen with a mobile device. I am on iOS 9, iphone 6+. 

The page loads and runs the js before the viewport scale setting is reached. 

am i missing a $(document).ready somewhere?

 

you can view the site live here: http://karlfoto.com.

 

I am updating the index page to html5 and css3 and I thought i might add some animations with GreenSock.js Everything works great on desktop. kinda funky on my iphone.

 

the issue really shows up while on iphone at the live website. the issue looks different in codepen. 

 

Thank You Very Much Friends

See the Pen PZWBWy by samricheson (@samricheson) on CodePen

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,

 

on iOS8 your live page looks like this: 

http://prntscr.com/9m0j1n

 

it animated fine. the only issue is that the text in the nav is overlapping.

 

your codepen demo in "debug" view on my iphone looks identical to the desktop layout: http://s.codepen.io/GreenSock/debug/YwNBLN

 

Pls note that codepen offers full and debug views that do not include the Editor tabs.

 

full: no editor with minimal codepen buttons but result is showed in an iframe

debug: no codepen branding or iframes (great for testing on devices)

 

it appears you need to verify you email address in order for us to see your pen in full view: http://codepen.io/samricheson/full/PZWBWy/ (i had to fork it to get to debug view)

 

All that said, i'm not sure what the issue is. your live site gives me a phone-sized, responsive layout and the animation seemed to work fine. Perhaps I'm not understanding what I should be seeing or maybe ios8 is different than 9. Screenshots might help.

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