css-animations

How to do a slide animation between two Bootstrap 3 tabs?

梦想的初衷 提交于 2019-11-27 15:15:59
问题 I'm trying to figure out how to do a slide left, right, up, down between two Bootstrap 3 tabs. I have searched the web and surprisingly have not found anything. The closest thing I found was THIS on Bootstrap github. However, it deals with Bootstrap 2.0.2 and no longer works for Bootstrap 3. Does anybody know how to slide left, right, up down (any or all) between two Bootstrap 3 tabs? Here is the basic Bootstrap 3 tab setup that I am using. <ul class="nav nav-tabs"> <li class="active"><a href

how to make CSS animation to play every 10 seconds

不羁的心 提交于 2019-11-27 15:15:54
问题 I have a css animation, which it either repeat infinite or only a certain times. but I would like to play it like 2 times every 5 seconds. Here is my code: #countText{ -webkit-animation-name: color2; -webkit-animation-duration: 1s; -webkit-animation-iteration-count: 2; -webkit-animation-timing-function: linear; -webkit-animation-delay: 5s; } @-webkit-keyframes color2 { 0% { } 25% { text-shadow:-2px -5px 10px #fb0017, -5px 0px 10px #3a00cd, -5px 5px 10px #00ff3a} 50% { } 75% { text-shadow:2px

CSS3 animation is not working in IE11 but works in other browsers

前提是你 提交于 2019-11-27 15:05:16
问题 I have created a CSS3 animation on a button. At the moment, it works perfectly everywhere apart from IE. I know it wont work well in older IE versions, but I was atleast expecting it to work in IE11. I have created a fiddle to demonstrate Fiddle I call the animation on :before and :after like so animation: 1000ms ease 0s normal none infinite running pulse-long; If you open the fiddle in Firefox or Chrome, you should see the animation on the button working. If you open it in IE11, it is just a

Get/set current @keyframes percentage/change keyframes

风流意气都作罢 提交于 2019-11-27 14:26:22
Is it possible to get/set the current animation percentage of a CSS3 @keyframes animation using javascript, jQuery, or some other means? Say for example there is a div with class called .spin that simply spins around in a circle using a keyframe also called spin . I have tried to get the current percentage value of the animation using $('.spin').css('animation') , $('.spin').css('animation: spin') , and a couple other ways, but they all alert empty I'm also interested in changing the original animation at each predefined keyframe % and I have tried things like $('.spin').css('animation', '.

CSS animations with Spritesheets in a grid image (not in a row)

孤街醉人 提交于 2019-11-27 13:33:13
问题 I'm trying to animate a sprite image, and found this great example: Blog: http://simurai.com/blog/2012/12/03/step-animation/ (has succumbed to linkrot). Wayback Machine: http://web.archive.org/web/20140208085706/http://simurai.com/blog/2012/12/03/step-animation/ Code Fiddle: https://codepen.io/simurai/pen/tukwj JSFiddle: http://jsfiddle.net/simurai/CGmCe/ .hi { width: 50px; height: 72px; background-image: url("http://s.cdpn.io/79/sprite-steps.png"); -webkit-animation: play .8s steps(10)

Is it possible to draw a partial circle outline in CSS (open ring shape)?

扶醉桌前 提交于 2019-11-27 13:11:52
I'm interested in creating a loading spinner entirely in CSS but in order to do so I would need to be able to draw a open ring shape like this: The ring would draw itself around the circumference of the circle. Is this achievable in CSS? To create a circle that gradually draws it's outer path, use SVG. SVG's stroke-dasharray property will turn any path into a dashed line, which you can use to your advantage by setting the dash size to be almost as long as the path itself. Then use a CSS animation to gradually change the stroke-dashoffset to move the dash around the perimeter of your circle.

Elastic easing in CSS3, best approach

∥☆過路亽.° 提交于 2019-11-27 13:05:26
问题 I'd like to emulate an elastic easing function in CSS3. CSS3 does not support this natively, so I've been coming up with my own keyframes, and it looks okay , but not perfectly natural. I do NOT want a solution that requires any additional JavaScript scripts. All of the other posts on StackOverflow have JS solutions accepted. What's the best way to implement elastic easing in pure CSS3? Here's my work so far, if that helps anybody... https://jsfiddle.net/407rhhnL/1/ I'm animating the red,

Webkit text aliasing gets weird during CSS3 animations

空扰寡人 提交于 2019-11-27 11:57:48
问题 This is a funky one. And I'm sure it's webkit related since it only seems to be an issue in Chrome Version 20.0.1132.57 and Safari 5.1.7. I've uploaded a short video to explain the issue because it would be nearly impossible to explain via text. Video: http://youtu.be/0XttO-Diz2g Short version: During CSS3 animations, text that is inside a positioned element (absolute or relative) seems to change its antialiasing. It becomes bolder while animations are running. Note: This is not the same as

Continuous CSS rotation animation on hover, animated back to 0deg on hover out

与世无争的帅哥 提交于 2019-11-27 11:01:08
I have an element that spins when you hover over it indefinitely. When you hover out, the animation stops. Simple: @-webkit-keyframes rotate { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } .elem:hover { -webkit-animation-name: rotate; -webkit-animation-duration: 1.5s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; } When you hover out, though, the animation abruptly ceases, reverting to 0 degrees. I'd like to animate back to that position, but I'm having some trouble working out the syntax. Any input would be

Changing :hover to touch/click for mobile devices

此生再无相见时 提交于 2019-11-27 10:31:42
I've had a look around but can't quite find what i'm looking for. I currently have a css animation on my page which is triggered by :hover. I would like this to change to 'click' or 'touch' when the page is resized past width 700px using media queries. Here is what i have at the moment: http://jsfiddle.net/danieljoseph/3p6Kz/ As you can see, the :hover will not work on mobile devices but i still want to ensure it works the same way just by click, not hover. I would rather use css if possible but happy with JQuery also. I have a feeling this is very easy to do but i am just missing something