css-animations

Trigger animation when svg is in the viewport

谁说胖子不能爱 提交于 2019-12-23 01:54:52
问题 Trigger animation when svg is in the viewport I have a page with a big header image and an svg animation below the fold. Here's the example: html, body { height: 100%; margin: 0 } .header-image { height: 100%; background-color: #ffcc00 } /*Line animations*/ .line { stroke-dasharray: 150; stroke-dashoffset: 150; animation: dash 2s cubic-bezier(0.23, 1, 0.32, 1);; -webkit-animation: dash 2s cubic-bezier(0.23, 1, 0.32, 1);; -webkit-animation-fill-mode: forwards; } #line01, #line02 { animation

How to fade out element using ng-hide with AngularJS?

余生颓废 提交于 2019-12-22 13:49:18
问题 I can currently show/hide an element according to a boolean condition in my controller. How can I fade the element out if the condition is true instead of just instantly hiding it? <div id='conversion-image' ng-hide="pages.length > 0"> generating pages... <br /> <img src='Images/ajax-loader-blue.gif' /> </div> I also already have the ngAnimate dependancy included as well. var app = angular.module("app", ["ngAnimate"]); 回答1: You can do it with CSS and ng-animate as the following: .fade-out.ng

Continuous wave like animation from wave line svg

萝らか妹 提交于 2019-12-22 12:25:25
问题 Hello I have an svg that is a wavy line built with adobe illustrator and I'm trying to add a continuous wave like animation to it. I've tried vivus.js and was able to get the draw animation working but not coninuously. Does anyone have an idea on how to start something like this? I don't expect someone to do the problem for me but instead point me to the right direction, although im not opposed if someone has a quick answer. Any answer will work wether its pure css, js or both. Here is the

Non animatable properties within keyframes are ignored on iOS

╄→尐↘猪︶ㄣ 提交于 2019-12-22 09:25:01
问题 I understand that non-animatable properties are not interpolated within animations, however, my understanding is that the values are at least (abruptly) computed. So, for example, let's say I want to 'animate' the overflow property (which is not animatable, i.e. not in this list) from hidden to visible - I would expect that the computed value will change appropriately. (I tried looking in the spec for this but couldn't find it mentioned explicitly) This is actually what happens in Chrome and

CSS Transition after animation ends

流过昼夜 提交于 2019-12-22 08:26:16
问题 I have a css transition that moves an element on hover and an animation that rotates the element on hover too. There's a delay on the animation equal to the transition duration so that after it's transitioned to it's correct position, the animation starts. And it works nice, however, when we mouse off, the animation stops but it doesn't transition back down. Is it possible to get it to transition back after we mouse off and the animation ends? You can see an example here: http://codepen.io

Toggling a CSS3 animation on click

社会主义新天地 提交于 2019-12-22 05:57:13
问题 What is the best way to alternate the direction of a CSS3 animation on click without javascript? I've been exploring checkbox hacks lately and trying to figure out a way to have only one set of keyframes instead of two sets for one going forward and one to come back. Is this possible? Or is there a way to do it with one set? For instance I have the following keyframes: @keyframes moveIt { 0% { transform: translateX(0); width: $size; } 50% { width: $size*1.2; } 100% { transform: translateX

CSS3 Animation with AngularJS not sliding correctly in Firefox

旧街凉风 提交于 2019-12-22 05:06:37
问题 I made a CSS3 animation connected to an ng-repeat which then shows an inline-list with Bootstrap3, I limited the number of maximum 3 of the list showing and I have some little issues with appears mostly in Firefox (believe it or not IE11 is without issues, wow I was surprised). I have 2 buttons (previous/next) and when I click the Next button then the animation of sliding from left to right start to do his job, but in Firefox when clicking multiple times, it seems that the animation only

CSS Animation Delay Not Working

前提是你 提交于 2019-12-22 04:37:08
问题 Trying to fade in one div....and 7 seconds later, fade another div in. I cannot, for the life of me, figure out why it's not working. The animations themselves work (the fadein/fadeout animations) but I need the "going" div to fade in after a set amount of seconds. Anyone know how to do this correctly? .coming{ width:320px; height:auto; position:absolute; top:0px; left:0px; margin-left:10px; background:#FFF; color:#000; font-family: Sans-Serif; font-size:24px; border-radius: 10px 10px 10px

CSS3 Scale, Fade and Spin on the same element (why isn't SCALE working?!?)

瘦欲@ 提交于 2019-12-22 00:40:38
问题 OK noobs. Need this circle to scale and fade in once at the beginning of the animation (while spinning) and continue to spin thereafter. Not that hard right!?! Got the fade and spin working but scale just refuses to work! Is there a fat finger somewhere? Before I rip out what hair I have left, please expose my noobness and why SCALE is not working ? Thank you, that is all... Latest FF only. (To lazy to code for everything else.) JS Fiddle EXAMPLE <!DOCTYPE html> <html> <head> <style> div

scss function for animation keyframes

旧城冷巷雨未停 提交于 2019-12-21 20:33:40
问题 i would like to do a reusable sass function that makes it easy for me to write a @keyframes css animation without writing too much code but I'm not sure how to go about it, especially the math part. i have a div containing a single background image with this css height: 100vh; width: 8000px; this background image is composed of 25 frames. so each frame is 320px wide. the animation should translateX() the div by multiple of 320px every 4%, so something like this: @keyframes animation { 0% {