css-animations

deleteRule CSSKeyframesRule method confusing behaviour in IE11

三世轮回 提交于 2019-12-08 03:07:49
问题 I have created basic animation of a circle using css @keyframes. I'm using javascript to trigger animation start/stop by click inside the circle. The animation itself could be divided into 5 (looped) phases: pause-expand-pause-shrink-pause (see @keyframes css section below) The goal I want to achieve is, eventually, to be able to set animation duration and change the values of keyframes (say by having input fields for pause and expand/shrink durations - details doesn't really matter for the

How can I let my css3 animation to stay at its animated position when it finishes animating? [duplicate]

最后都变了- 提交于 2019-12-08 02:53:45
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Webkit CSS Animation issue - persisting the end state of the animation? I want to keep the position of my animated div when it finishes running. Right now I animating the div on mouse hover, but the div return back to it's position even if I'm still hovering over it. Is there a way to let it get back only when I mouse out? http://jsfiddle.net/neoswf/X5a64/ div{ width:100px;height:100px;margin:1em;background:red

CSS animation onclick and reverse next onclick

亡梦爱人 提交于 2019-12-07 23:14:26
I am using a spritesheet and keyframes to animate the image on a button when it is clicked. When the button is clicked I want the frames to run in one direction and leave the button on the last image in the spritesheet, and when it is clicked again I want the same frames to run backwards, leaving the button on the first image on the spritesheet. I am currently trying to use jquery to change the class on the button to an animating class when it is clicked, but this doesn't seem to be working. fiddle: http://jsfiddle.net/CGmCe/10295/ JS: function animate(){ $('.hi').addClass('animate-hi'); } CSS

How to add a *progressive* animation delay based on n-th position?

 ̄綄美尐妖づ 提交于 2019-12-07 22:51:24
问题 I'd like to animate a list of items. The first should animate with 0ms delay, the second should do the same animation with 50ms delay, third with 100ms delay and so on. The list is dynamic so I won't know the length. Is this possible? Note: I don't need help with animations / keyframes specifically, but how to use nth-child or nth-of-type (or anything else?) to achieve a progressive animation delay based on relative position between siblings. I'm using React / SASS / Webpack if that helps. I

CSS3 storing current animation values

大兔子大兔子 提交于 2019-12-07 21:24:24
问题 i have a div that is doing a rotation animation as such : @-webkit-keyframes animateCamera { from {-webkit-transform: translateZ(300px) rotateY(0deg);} to {-webkit-transform: translateZ(300px) rotateY(360deg);}} } what I want to happen is that when I trigger an event (let us say a mouseclick), I want to store in a variable the current rotateY as of the animation. For example, if the click event is triggered while the animation is at around 140deg, I want that 140 degrees stored in a variable.

CSS animation visibility: visible; works on Chrome and Safari, but not on iOS

时光总嘲笑我的痴心妄想 提交于 2019-12-07 21:10:26
问题 In Chrome (19.0.1084.46 m on WinXP) and Safari (5.1.7 on OS X 10.7.4), this fiddle http://jsfiddle.net/Vkpwm/ works; clicking on the google image shows/hides the green div, but when loading it on my iPhone, and on the iPhone simulator in xCode (by using the direct page http://jsfiddle.net/Vkpwm/show/), the div never gets shown again. Removing the line "-webkit-transition: 0.5s;" from the css makes it work, but obviously breaks the animation. Removing the line "visibility: hidden;" also makes

How to play reverse keyframe animation for hover off?

…衆ロ難τιáo~ 提交于 2019-12-07 20:06:31
问题 I'm trying to build a dropdown menu where first the dropdown slides down, then one-by-one menu items appear from the bottom. On hover, it looks good but I don't know how to play it smoothly on hover off. What I'm trying to do is hide the second sub-menu item first, then the first submenu item, then the dropdown slides up. What I tried is to add the hide animation keyframes with a delay by default to the dropdown, and add the show animation on hover with 0 delay. But its not working properly

Shorthand animation working only in Chrome

情到浓时终转凉″ 提交于 2019-12-07 19:06:04
问题 In Chrome, the following CSS3 animation works as I would expect, rendering an animation of the outline. However, in Internet Explorer and Firefox, this doesn't work. @keyframes outline-pulse { 0% { outline: 10px solid green; } 100% { outline: 0px solid green; } } .animate { animation: outline-pulse 1s linear 0; animation-iteration-count: infinite; } <fieldset class="animate"> <p>Content</p> </fieldset> 回答1: This appears to be due to an oversight in the WD. In particular, it does not take into

Scale of image with CSS3 animation

倖福魔咒の 提交于 2019-12-07 18:57:10
问题 I try to scale of image like light box. When run the size of image changed but with out animation. <div id="dnn_ctr428_ContentPane" class="img-rectangular"><div id="dnn_ctr428_ModuleContent" class="DNNModuleContent ModDNNHTMLC"> <div id="dnn_ctr428_HtmlModule_lblContent" class="Normal"> <img alt="" src="/dnn_test/portals/0/Images/logo2.png?ver=1394-08-24-081741-293"> </div> </div></div> css: .img-rectangular:hover img { width: 120%; height: 120%; -webkit-transition: width 2000ms ease-in-out;

ngAnimate CSS animation not working with ng-show & ng-hide

こ雲淡風輕ζ 提交于 2019-12-07 15:39:57
问题 DEMO: http://plnkr.co/edit/cPDUWO?p=preview I have 2 checked checkboxes and 2 widgets displayed on the page. Clicking the checkboxes will use ng-show & ng-hide to hide and show the corresponding widget. Now I want to also have a basic fadeIn and fadeOut , however no luck so far :( The widgets that show/hide without any fade animation. Can you see where I'm going wrong? Controller animateApp.controller('mainController', function($scope) { $scope.pageClass = 'page-home'; $scope.widget_manage