css-transitions

Bootstrap carousel: How to slide two carousel sliders at a same time?

被刻印的时光 ゝ 提交于 2019-12-23 08:59:22
问题 I have three carousel sliders on the single page and I want them to move two of them at the same time .i.e. both should change slider images at the same time. Both have same number of images/slides. Here is the code I am using: jQuery('#carousel-example-generic1, #carousel-example-generic2').carousel({ interval: 4000 }); And also I tried this code below: jQuery('.carousel').carousel({ pause:'false' }); jQuery('#carousel-example-generic1').on('slide', function(){ jQuery('#carousel-example

Bootstrap carousel: How to slide two carousel sliders at a same time?

大城市里の小女人 提交于 2019-12-23 08:59:14
问题 I have three carousel sliders on the single page and I want them to move two of them at the same time .i.e. both should change slider images at the same time. Both have same number of images/slides. Here is the code I am using: jQuery('#carousel-example-generic1, #carousel-example-generic2').carousel({ interval: 4000 }); And also I tried this code below: jQuery('.carousel').carousel({ pause:'false' }); jQuery('#carousel-example-generic1').on('slide', function(){ jQuery('#carousel-example

CSS3 animation “progress” callback

对着背影说爱祢 提交于 2019-12-23 07:42:10
问题 I just wanted to know if there is a way to monitor progress of a element's animation. All I know is animationstart and animationend , Is there some sort of animationprogress ? 回答1: No, there is no animationprogess event. Per the W3 specification, there are three types of AnimationEvent events. There is animationstart , animationend and animationiteration . animationiteration is fired in place of animationend when the animation is about to repeat again. You could presumably use a setInterval()

CSS transitions don't work unless I use timeout

别等时光非礼了梦想. 提交于 2019-12-23 07:34:07
问题 I have a couple of classes: hide is display: none , and transparent is opacity: 0 . The element pr_container has -webkit-transition: opacity 1s . The following JQuery-based code makes an element appear in an animated fasion: pr_container.removeClass("hide"); setTimeout(function() { pr_container.removeClass("transparent"); }, 0); However, when I remove setTimeout and instead just remove the second class, there is no animation. Why? Edit: I'm using the latest Chrome, I haven't checked other

Making a circle with dotted border in css and animating on hover

£可爱£侵袭症+ 提交于 2019-12-22 17:55:02
问题 I'm trying to animate a css circle. When the user hovers it, the border of the circle should become a dotted line and it should animate like a spinning wheel. I can make it spin for a given time, but I couldn't find a way to animate it until the mouse pointer hovers on it and then stop the animation when the mouse pointer is taken out of the circle and make a dotted border. html <div> </div> css div { background: red; border: 5px solid green; width: 200px; height: 200px; border-radius: 50%;

Transition centered text to left / right edges without overflowing

戏子无情 提交于 2019-12-22 12:42:17
问题 I was able to transition text-align from center to left . With this code, if you run it, then hover over, you'll see the top one goes to the left. However the bottom overflows on the right ; how can I figure out how to make the transition to right not overflow? Note: This is a demo of my real application, which has strings/elements of unknown/variable width, from 1 to anything to fill a single line (no wrapping). .header { position: fixed; width: 70%; background-color: springgreen; } .title {

jQuery Waypoints Refresh with CSS Transition

耗尽温柔 提交于 2019-12-22 10:59:00
问题 I'm using waypoints to toggle a class which creates a CSS transition based on an offset. This is css transition decreases the height of an element. I've tried using the refresh function to recalculate the DOM once each waypoint is passed, but I'm not sure I'm doing it right or maybe I'm slightly restricted here. You can view the site here: http://dev.rostylesalon.com/ jQuery('#aboutwrap').waypoint( function() { jQuery('#aboutwrap .section-header').toggleClass('header-animate'); $.waypoints(

CSS3 transition scale but not translation

我的梦境 提交于 2019-12-22 10:43:53
问题 I couldn't find an answer to this anywhere, probably because it doesn't exist, but anyway: Rather than defining "transition-property: transform", is it possible to define transitions for translation and scale independently? Right now I got the following definition: .logo { position: absolute; -webkit-transition: -webkit-transform 1s ease-out; } This way, when I set "-webkit-transform" to "scale($s) translate3D($x,$y,$z)" (with $s etc. being arbitrary values) both are animated, but I only want

CSS transition on png sequence using steps

有些话、适合烂在心里 提交于 2019-12-22 09:49:41
问题 I'm trying to make an animation using a PNG sequence, which has a transition on hover, and animates back when the hover state ends. For this I'm using a css transition with a "steps" timing function, like so: transition:background .5s steps(9, end); See the fiddle for a live example (I've used a random PNG sprite that I Googled, it's not the one I'm actually using) http://jsfiddle.net/MLWL5/ Basically this is working fine, when you hover over the element slowly. When you quickly hover on and

Keeping style applied using :hover until transition complete?

心不动则不痛 提交于 2019-12-22 05:18:21
问题 I have a bunch of tiles on a page that expand as the user mouses over them. The expanded one should have the highest z-index , and this works, but I need the z-index to remain until the size transition is complete. Is there a way to do this using CSS only, no JavaScript ? Since I'm using transitions, I'm not too worried about compatibility here, I applied progressive enhancement correctly. Here's a jsFiddle that demonstrates this. Mouse over A; it transitions out. Mouse off of it, however,