Comments (14)
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.
+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.
+1
Choppy animation on Nexus7 chrome...
from sidr.
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.
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.
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.
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.
Are there any progress on this issue ? / Does #30 fixes this issue?
from sidr.
< meta name="viewport" content="initial-scale=1" > fixed it for me!
from sidr.
+1
from sidr.
This should be addressed - relying on jquery for animation doesn't invoke the GPU.
from sidr.
It will be added when implementing CSS animations
from sidr.
Possible workaround is to use velocityJS and point
from sidr.
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)
- sidr is removing one class and I need it so is there any solution so sidr doesn't remove it? or any other solution? HOT 3
- sidr option to resize container area instead of moving it
- When use plugin with jquery 3<= have problem with "bind" and "unbind",maybe replace it by "on'' and "off"? HOT 1
- In ios, why is the transition on the initialization time? HOT 1
- Update jsDelivr links
- Sidr is appending #sidr-0 in URL in first time and nothing happens HOT 1
- parent menu not clickable HOT 2
- Hide sidr when clicking / touching outside the sidr HOT 1
- Option to use original DOM elements instead of clones HOT 4
- Real example of Remotly Load content with jquery and Ajax HOT 1
- Can I use it in React?
- Menu not closing on body click HOT 1
- iphone safari white (background?)
- get rid of the "undefined" message
- jQuery 3.4.0 .data() bug
- How To Slide to Close the' Nav'
- Missing "main" entry point in package.json
- right to left
- dynamic width of sidr
- Save toggle state
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sidr.