keyframe

matrix not equal to translate and rotate combination in css transform animation?

房东的猫 提交于 2019-12-24 10:55:24
问题 @keyframes gray { 0% { transform: matrix(1, 0, 0, 1, 0, 0) } 100% { transform: matrix(-1, 0, 0, -1, 20, 20) } } @keyframes lightblue { 0% { transform: translate(10px, 10px) rotate(0deg) translate(-10px, -10px); } 100% { transform: translate(10px, 10px) rotate(180deg) translate(-10px, -10px); } } .gray { float: left; margin-left: 50px; width: 20px; height: 20px; background: gray; transform-origin: 0px 0px; animation: gray linear 1s infinite; } .lightblue { float: left; margin-left: 50px; width

How to refer to object from other keyframe

和自甴很熟 提交于 2019-12-24 10:19:58
问题 I want to get information of an object from a previous keyframe. _root. works only for objects on the same keyframe as the code right? 回答1: Your object doesn't exist one you leave the keyframe that created it, unless the object was added with ActionScript. You'll have the place the object on its own layer and extend the keyframe to reach the point where you're trying to access it, or as mentioned create it with ActionScript. 来源: https://stackoverflow.com/questions/8934346/how-to-refer-to

How do I slow down a keyframe animation?

时光怂恿深爱的人放手 提交于 2019-12-24 02:57:24
问题 I have this code: .blur { -webkit-animation: blur 5s ; -webkit-animation-fill-mode: forwards; } @-webkit-keyframes blur { 0% { -webkit-filter: blur(0px); } 0% { -webkit-filter: blur(1px); } 50% { -webkit-filter: blur(5px); } 60% { -webkit-filter: blur(5px); } 100% { opacity: 0; } } <img src="http://placehold.it/350x150" class="blur" /> Basically I have an image and the effect that I want is to fade it in slowly, blur it and then fade it out. But when it blurs I want it to stay there for few

How do I slow down a keyframe animation?

放肆的年华 提交于 2019-12-24 02:57:08
问题 I have this code: .blur { -webkit-animation: blur 5s ; -webkit-animation-fill-mode: forwards; } @-webkit-keyframes blur { 0% { -webkit-filter: blur(0px); } 0% { -webkit-filter: blur(1px); } 50% { -webkit-filter: blur(5px); } 60% { -webkit-filter: blur(5px); } 100% { opacity: 0; } } <img src="http://placehold.it/350x150" class="blur" /> Basically I have an image and the effect that I want is to fade it in slowly, blur it and then fade it out. But when it blurs I want it to stay there for few

expanding/animating a div from center when width is 100%

天大地大妈咪最大 提交于 2019-12-22 18:02:24
问题 I have a div with a border and i used keyframes to expand it onload but I want it to expand from the center rather than left to right. http://andylilien.com/index2015.html the css: .navback { position:absolute; bottom:0px; padding-bottom:-8px; width:100%; height:17px; background-color:#FFF; border-top: 1px solid #d0d0d0; z-index:999; } @-webkit-keyframes expandline{ 0%{width:0%;} 50%{width:50%;} 100%{width:100%;} } .navback{ -webkit-animation:expandline 2s; } 回答1: Adjust the height and width

Can I set the progress of a keyframe animation to a specific stage?

孤者浪人 提交于 2019-12-21 07:19:10
问题 I have a keyframe animation with multiple steps: @keyframes rotateLeftSideCustom { 0% { } 40% { -webkit-transform: rotateY(-15deg); transform: rotateY(-15deg); opacity: .8; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; } 100% { -webkit-transform: scale(0.8) translateZ(-200px); transform: scale(0.8) translateZ(-200px); opacity: 0; } } .section-animation { -webkit-transform-origin: 100% 50%; transform-origin: 100% 50%; -webkit-animation: rotateLeftSideCustom

Key Frame Extraction From Video

安稳与你 提交于 2019-12-18 10:29:40
问题 I need Need To extract Key Frames from Video/Stream.So is there any standard implementation. I am using open CV. (Currently i am extracting frames each second which is slower i need to improve performance.) So if any one has optimized implementation please reply in here. 回答1: Using ffmpeg you can extract all key frames using the following code: ffmpeg -vf select="eq(pict_type\,PICT_TYPE_I)" -i yourvideo.mp4 -vsync 2 -s 160x90 -f image2 thumbnails-%02d.jpeg What follows -vf in a ffmpeg command

Cross-Fade between images with CSS in loop

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 18:43:09
问题 I want to fade between images in a loop (like result here-jsfiddle.net/5M2PD) but purely through CSS , no JavaScript . I tried using key-frames but I wasn't successful. Please Help. @keyframes cf3FadeInOut { 0% { opacity:1; } 45% { opacity:1; } 55% { opacity:0; } 100% { opacity:0; } } #cf3 img.top { animation-name: cf3FadeInOut; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-duration: 10s; animation-direction: alternate; } 回答1: I have taken your fiddle

FFMPEG reading keyframes

被刻印的时光 ゝ 提交于 2019-12-14 03:52:58
问题 I am trying to write a c++ program that would read key frames from the video file using ffmpeg. So far I managed to get all the frames using av_read_frame where you sequentially read frame by frame. But I having some problems using av_seek_frame which (if I am correct) supposed to do the trick for keyframes. int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags); I have FormatContext but what are other correct arguments to sequentially get only all keyframes ?

jQuery - dynamically change webkit-animate time parameter

假装没事ソ 提交于 2019-12-13 05:26:23
问题 I need to make customizable the blink speed of a text And I made in this way: <style> .blink { -webkit-animation: blink 0s step-end infinite; animation: blink 0s step-end infinite; } @-webkit-keyframes blink { 50% { visibility: hidden; }} @keyframes blink { 50% { visibility: hidden; }} </style> <body> <div id="test" class="blink">Test</div> <input id="blinkspeed" type="number" value="0"> </body> <script> $('#blinkspeed').click(function(){ $("#test")[0].style.webkitAnimation = "blink "+$(this)