css-animations

Pure CSS countdown animation

五迷三道 提交于 2019-12-03 02:57:56
I'm trying to do a pure HTML/CSS countdown animation but I'm struggling to make it work smoothly. For now I'm only covering minutes and seconds. Notice that I'm using animation-delay property for resetting my countdown to a certain initial time. For now everything is working fine, except the digit corresponding to the x10 minutes which is not changing sync with the rest of the digits. Following I will paste my code and two codepens, a first normal version with the correct timings for a normal behaviour and another one 10 times faster so you can quickly appreciate the problem. https://codepen

Animate spinning circle(percentage) with css

岁酱吖の 提交于 2019-12-03 01:32:36
How can i make the spinning circles which is on the following site http://www.awwwards.com/ For my site i don't need it to be dynamic. At least not this time. I have tried out different solutions, with both Javascript and CSS, but i'm not sure what is the best method to create this. -moz-transform: rotate(270); -webkit-transform: rotate(270); -o-transform:rotate(270deg); transform: rotate(270deg); transition: all 2s; This is pretty much all i know about transitions, but i guess its enough. However, i would have to have my "pie" of the cake cut out before the transition start, right? Anyone

Proper way to optimize CSS 3 animations for iOS/Mobile Safari?

余生颓废 提交于 2019-12-03 00:14:27
问题 I'm building an iPad app using PhoneGap. I'm trying to use CSS transformations for the animation, but I'm not entirely sure I'm using the proper methods to leverage any hardware acceleration the device might support. It's a modal window (DIV) that I want to slide down from the top of the page. It'd start positioned off the top of the screen, then animated into the page itself via adding a class via jquery: .modal { background: url('../images/bgnd-modal.png'); width: 800px; height: 568px;

CSS animation similar to Mac OS X 10.8 invalid password “shake”?

折月煮酒 提交于 2019-12-02 20:24:22
On the Mac OS X 10.8 "password" screen, if you enter an invalid password, it will "shake" back and forth (a.k.a. left and right). I am trying to achieve an similar effect for an HTML password input field using CSS animations. I created a "Password Shake" jsfiddle that seems to emulate this behavior. However, it doesn't seem quite right. I'm not sure the explicit keyframes and the linear timing function are the right approach. This is my first attempt at a CSS animation, and I'm looking for feedback on the right way to achieve this. HTML <div class="box"> <input type="password" id="demo

Create a loop using SCSS to change background images with CSS3 animate?

走远了吗. 提交于 2019-12-02 19:49:21
问题 I have created the beginning of a CSS3 animation as shown below. I have tried to use @for and @each within SCSS to create a loop which will increment the %'s and also the number of each background image. My knowledge of advanced SCSS like this is poor, so everything I have tried has been nonsense and trial and error based on reading the SCSS docs - and really not worth posting here. Is it possible to use SCSS in this way to save having to type each keyframe? .perimeterAnim { background-image:

-webkit-animation-play-state not working in Chrome

↘锁芯ラ 提交于 2019-12-02 17:33:34
问题 I've set up a simple JSFiddle to illustrate the problem: where's the paused state? Can anyone tell me why Safari shows the animated element in a paused state as expected, but in Chrome the animation is running? I'm using Chrome 33.0.1750.146, and wonder if this is a bug with the latest build. Or am I completely missing something.... Here's the CSS of the paused element. #blue-box { width: 100px; height: 100px; background: blue; -webkit-animation-name: blueBox; -webkit-animation-play-state:

I've made an animation with CSS (transform) and it resets when the animation ends

旧时模样 提交于 2019-12-02 14:55:01
问题 I have the following structure, and my problem is that when the animaition ends that is replacing down it just restart, and I was wondering if there's anyway it just stops nad waits in the finle while its hovered, thanks , here is the code: http://jsfiddle.net/bd4c5cc7/ <div class="nav"> <ul class="list"> <li> <a href="#">Inicio</a> </li> <li> <a href="#">Quienes somos</a> </li> <li> <a href="#">Servicios</a> </li> <li> <a href="#">Flota</a> </li> <li> <a href="#">Donde estamos</a> </li> <li>

Proper way to optimize CSS 3 animations for iOS/Mobile Safari?

[亡魂溺海] 提交于 2019-12-02 13:58:01
I'm building an iPad app using PhoneGap. I'm trying to use CSS transformations for the animation, but I'm not entirely sure I'm using the proper methods to leverage any hardware acceleration the device might support. It's a modal window (DIV) that I want to slide down from the top of the page. It'd start positioned off the top of the screen, then animated into the page itself via adding a class via jquery: .modal { background: url('../images/bgnd-modal.png'); width: 800px; height: 568px; position: absolute; top: -618px; left: 100px; z-index: 1001; -webkit-transition: top .25s ease-in; } .modal

CSS animation keyframes with display none works to fade in, but not fade out

夙愿已清 提交于 2019-12-02 13:36:47
问题 I have an element which has display none on start. When i add a class to it i want it to fade in, using CSS. I found this tutorial to use keyframes which is working nice for fade in. But if i want to fade out the same way, the element gets hidden immediately with no animation. Basically it looks like this: .box { display: none; opacity: 0; animation: FadeOut 1s ease-in-out; &.active { display: block; opacity: 1; animation: FadeIn 1s ease-in-out; } } Here is an "working" example: http:/

Bounce animation on a scaled object

爱⌒轻易说出口 提交于 2019-12-02 12:25:57
What is the best way to have an object scale and then perform a bounce animation at that scale factor before going back to the original scale factor. I realize I could do something like scaling it to 2.2, then 1.8, then 2.0, but I'm looking for a way where you just have to perform the bounce animation on the scale factor because my scale factor will change. Here is my example. Basically I want to combine the two to work like I said but as you can see the bounce animation performs based off the image size prior to scaling. I need all sides of the image to bounce equally, like the example.