Code Monkey home page Code Monkey logo

Comments (14)

katspaugh avatar katspaugh commented on May 13, 2024

That's because setInterval-based animation sucks, I'm sorry. Don't use jQuery's animate, use CSS3 transitions. Also, instead of animating the left of the document body, try translateX.

from sidr.

anselmo avatar anselmo commented on May 13, 2024

+1 for translateX, fallback requestAnimationFrame ... but don't delegate animations to jQuery.
This could also triggers a css refactoring (http://thesassway.com/beginner/the-inception-rule)...

from sidr.

russomi avatar russomi commented on May 13, 2024

+1

Choppy animation on Nexus7 chrome...

from sidr.

michaelcummings avatar michaelcummings commented on May 13, 2024

Not only is this very choppy, does anyone else have a problem with the way the page content is resizing? I'm getting an almost half second delay waiting on the page to render the sizes of text at a different size when the menu shows up.

I'm not sure if @artberri was going for the facebook menu effect or not, but if you look at mobile FB you'll see that the content pane simply slides to the right with no resizing of content.

from sidr.

jdifelice avatar jdifelice commented on May 13, 2024

Has anyone else tried the jquery.animate-enhanced plugin with Sidr with any success? I added jquery.animate-enhanced.min.js and it did smooth out the animation when viewed in my Xcode iPhone simulator. But when I deployed it to my iPhone 5, it made the div jump around.

from sidr.

artberri avatar artberri commented on May 13, 2024

Hi!

I'll try to implent the animations with CSS3 and to use jquery.animate only when the browsers don't support them. I'll try to finish it this weekend.

from sidr.

rickalee avatar rickalee commented on May 13, 2024

Agree with michaelcummings comment.

"I'm not sure if @artberri was going for the facebook menu effect or not, but if you look at mobile FB you'll see that the content pane simply slides to the right with no resizing of content."

The content/viewport resizing and shrinking of Menu button is odd.

from sidr.

glesperance avatar glesperance commented on May 13, 2024

Are there any progress on this issue ? / Does #30 fixes this issue?

from sidr.

praneeth87 avatar praneeth87 commented on May 13, 2024

< meta name="viewport" content="initial-scale=1" > fixed it for me!

from sidr.

terehov avatar terehov commented on May 13, 2024

+1

from sidr.

aaroncrawford avatar aaroncrawford commented on May 13, 2024

This should be addressed - relying on jquery for animation doesn't invoke the GPU.

from sidr.

artberri avatar artberri commented on May 13, 2024

It will be added when implementing CSS animations

#30

from sidr.

Adam-Reynolds avatar Adam-Reynolds commented on May 13, 2024

Possible workaround is to use velocityJS and point $.animate to $.velocity.. same syntax, better performance.

from sidr.

artberri avatar artberri commented on May 13, 2024

CSS transitions will be added in the next Sidr version. You can check it in the 2bc6799 commit (and the following ones).

Than you all for your support.

from sidr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.