Comments (8)
Hmm, interesting. Could you isolate this in a test page and link to it?
from animate.css.
Try it on this page. You'll need to refresh the page a few times. Its kind on an anomaly, but when it occurs its pretty bad. I have also taken screen shots I can share. You'll have to test it on an iPhone because that is where the issue is occurring. I am actively working on this so hopefully you can reproduce it.
Test page: http://luckie.joshuapekera.com/resume
Screenshots:
https://skitch.com/joshuapekera/er997/photo-1
https://skitch.com/joshuapekera/efyyx/photo-3
https://skitch.com/joshuapekera/efybf/photo-2
from animate.css.
Fix
Ok I may have found a fix. There was a post on stackoverflow (http://stackoverflow.com/questions/6411361/webkit-based-blurry-distorted-text-post-animation-via-translate3d) regarding something similar using translate3d. Apparently it is a webkit issue affecting the iPhone or mobile devices more than anything else. They offer a fix by suggesting you add:
-webkit-font-smoothing: subpixel-antialiased;
to any animated blocks of content in your css. I tried this and it seams to have worked.
Tip
I created a separate css file to handle my animations. I named it "keyframe.css". I simply added the above css to each #id element that is being animated. It turned out to be a very simple and easy fix. I also included media queries in the keyframe.css file that allow me to adjust the timing of different animations for mobile devices. This really helped adjust when an element loaded and was presented to a user. Elements like social plugins from Twitter and Facebook that load in an iframe are usually jumpy and load inconsistently with the rest of the content. The adjusted animation timing allowed me to have those elements load in the background and then present them in a very elegant way to the user by using fadeInDown or something similar. It's extremely powerful to have the ability to control how and when something is presented to a user. Thanks for creating all these great animations Dan. They have been a tremendous time saver. I hope this issue and fix I encountered help someone else in the future.
from animate.css.
Also, if you want to adjust an animation class for an entire page loading on a mobile device here is some sample code I wrote using jquery.
if ($(window).width() <= 767) {
$('.bounceInLeft').removeClass('bounceInLeft').addClass('fadeInLeft');
$('.bounceInRight').removeClass('bounceInRight').addClass('fadeInRight');
}
This script detects a viewport for any type of mobile device and adjusts the animation class specified. In this example, I replaced all "bounceIn" animations for a "fadeIn" counterpart. The "fadeIn" was more subtle and worked better on the mobile device. This will not affect tablets though. You'll have to adjust the script if you want to make changes for a device like the iPad etc.
from animate.css.
Hmm, very bizarre. That font smoothing trick is employing 3D hardware acceleration, which translate3d does anyway. I'll have to investigate this further. Thanks for bringing it up. Btw, what device & iOS version is this on?
from animate.css.
OS X Lion 10.7.4 and iOS 5.1.1 on an iPhone 4S
from animate.css.
Hi guys
Not sure if this helps or is entirely related, but I am having another issue on Webkit only.
When I include animate.min.css into my page, several of my fonts are ruined (see screens below)
With the CSS file included: https://www.evernote.com/shard/s43/sh/18b2be30-717a-4746-aa4a-1fa8aa4c769f/6e8a1b0abfe849c113dd536a50acdb03
Without the file: https://www.evernote.com/shard/s43/sh/13adc89b-a8b7-403d-9f37-fa8dd66781ad/95660e9829a045aad11c32d2abd42a6a
This is only affecting some fonts, and only in Chrome / webkit.
Update:
I've narrowed it down specifically to this:
-webkit-backface-visibility: hidden;
When this is removed the fonts work fine.
from animate.css.
Just thought I would share what I found. Meant to post this a while ago. The issue is when you have multiple tabs open in mobile safari. When you are using keyframes you are consuming GPU memory. When you are testing a site that is using a lot of keyframes and it has several instances open the iPhone can have low memory issues that cause rendering issues on new tabs. The fix is to close additional tabs in mobile safari that is using the keyframe animations. You can also power off your phone and back on. Continually testing a site can run away with you and quickly cause you to have several instances of your site open thus triggering low memory issues. Hope someone else finds this helpful.
from animate.css.
Related Issues (20)
- Can you add animations for more elements? HOT 3
- suggestion about Documentation HOT 5
- T
- dumplings
- Not working on Google Chrome v=103 / Linux HOT 1
- backdrop-blur is not working when is backin HOT 4
- Implement animate on scroll HOT 3
- iOS 14 support HOT 2
- CSS
- Request for a forwards fill css class parameter HOT 2
- Duplicated property name in animation.css HOT 4
- Animate only if i hit a specific section HOT 2
- Adding AOS HOT 1
- css problem in float property and box model HOT 2
- Akab
- Keep the element at the end of its animation values HOT 1
- copy button to copy code by just one click HOT 12
- Link to Hippocratic license triggers antivirus phishing alert HOT 2
- Request to Add Scroll Animations to the Repository HOT 2
- Animation intensity HOT 2
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 animate.css.