css-transitions

Why is my CSS transition ending abruptly on mouse-out?

旧巷老猫 提交于 2019-12-01 00:15:35
I was just testing few CSS transitions( I am beginner in CSS ). All of the transitions are going smooth. But in one of the transition, when mouseover is done transition plays smoothly, and as soon as you do a mouse out it abruptly ends. In all other cases, mouseover and mouseout both are playing fine. What is the reason why the transition is ending in such manner? How to fix it? ( Fixed: Thanks to @Edwin ). Now, please explain Why it is not working with no changes. jsbin: http://jsbin.com/oposof , http://jsbin.com/oposof/5 ( I am concerned about the first transition 'Triangle' ). #container1 >

Why does applying '-webkit-backface-visibility: hidden;' fix issues with negative margin transition on on ios / ipad 5.1?

半腔热情 提交于 2019-11-30 23:33:44
I have stumbled on a fix for my issue by accident - and I don't like applying fixes I don't understand. <ul> <li><img src="something.jpg" /></li> <li><img src="somethingElse.jpg" /></li> [+12 more <li>'s] </ul> A precis of what I think are the pertinent css styles are: ul { position: absolute; list-style-type: none; top: 0; left: 0; } li { position: relative; height: 900px; width: 500px; float: left; } img { display: block; margin: 0 auto; } The problem: When applying a transition that performs the transition to shift the whole set of images left i.e.: ul { left: -3000px; } it works well

CSS3 transition for “top” and “left” properties not working

℡╲_俬逩灬. 提交于 2019-11-30 23:02:54
问题 I have a list with one item on the list transitioning to the northeast when I hover over it. Using margin-top and margin-left property transitions worked but the item being hovered over kept pushing other elements so I added position:relative and tried using top and left transition properties but it didn't seem to be working. Here is the jsfiddle: list hover 回答1: Have you tried setting the parent of your list. I know sometimes relative has issue unless the underlying item is also relative or

How to get this hover effect with just CSS

╄→尐↘猪︶ㄣ 提交于 2019-11-30 22:20:03
I've already got the circle part. I set a background color of black on the div. and for the text, I set a:hover as the color shown. I just can't figure out how do I set a:hover for the div as well just for that amount of circumference. Here's my code: HTML: <a class="cirlink" href="http://www.somesite.com"> <div class="circle"> <h2 class="textcolor">click<br> here</h2> </div> </a> CSS: .circle { border-radius: 125px; width:250px; height:250px; background-color:black; margin:auto; text-align:center; } .textcolor:hover { transition:1s; color:#FF4800; } Also, is there any way to change the

CSS Webkit Transition - Fade out slowly than Fade in

谁说我不能喝 提交于 2019-11-30 22:09:44
问题 This is what I have: .box{ background:#FFF; -webkit-transition: background 0.5s; } .box:hover{ background:#000; } But this appends to both onmouseover and onmouseout actions, but isn't there a way to control them? Something like: -wekbkit-transition-IN: background 1s; -webkit-transition-OUT: background 10s; 回答1: Just redifine your transition in the over pseudo element. .box{ background: white; -webkit-transition: background 5s; } .box:hover{ background: olive; -webkit-transition: background

CSS Animation/Scale issue in Chrome/Webkit

♀尐吖头ヾ 提交于 2019-11-30 22:01:07
This effect works fine in FF but not Chrome- the Firebug results in Chrome show that the '-webkit-animation' aren't rendered in Chrome. In Firefox however, you see the'stretch' effect on entrance of the object. In Chrome, the object doesn't scale at all. http://jsfiddle.net/AfDwu/5/ You are not specifying the properties of the -webkit-animation , only the name. Replace: -webkit-animation-name: ooze With: -webkit-animation: ooze 2s 2s ease-in-out; And it will work 来源: https://stackoverflow.com/questions/7801084/css-animation-scale-issue-in-chrome-webkit

Is it possible to rotate characters of a word instead of rotating the whole word using css3

£可爱£侵袭症+ 提交于 2019-11-30 20:31:34
I am trying to transform text in a div using onload window event. I know that transform: rotate(360deg) scaleX(-1); makes the whole word rotate but I need to rotate the text characters and return them back to their same position while on load. My fiddle and goin to initialize it in mysite marked a Answer as right.Still a better answer need! Are you looking for this ? Running Demo Encapsule each letter in a <span> element with jQuery; $(".start").html($(".start").html().replace(/./g, "<span>$&</span>")); define animation @keyframes rotateText { 0% {transform: scaleX(1); } 50% {transform: scaleX

When using CSS transitions/animations/etc., what's the best way to fall back to jquery if the users browser doesn't do css animations?

妖精的绣舞 提交于 2019-11-30 20:27:56
I'm looking for a way to use css animations, but if the users browser doesn't do css animations - to then fall back to use Jquery for the animation. Is there an easy way to do this in Jquery? a plugin would be OKAY, if it were a small plugin, but i'm really looking for some way of doing this in jquery if possible. The only reason I want to use css animations is because of the much lower Processor power used when using css animations. The jQuery animate enhanced plugin uses CSS transitions without having to write specific code for transition capable browsers The alternative is not very

Why does applying '-webkit-backface-visibility: hidden;' fix issues with negative margin transition on on ios / ipad 5.1?

谁说我不能喝 提交于 2019-11-30 18:32:35
问题 I have stumbled on a fix for my issue by accident - and I don't like applying fixes I don't understand. <ul> <li><img src="something.jpg" /></li> <li><img src="somethingElse.jpg" /></li> [+12 more <li>'s] </ul> A precis of what I think are the pertinent css styles are: ul { position: absolute; list-style-type: none; top: 0; left: 0; } li { position: relative; height: 900px; width: 500px; float: left; } img { display: block; margin: 0 auto; } The problem: When applying a transition that

Why is my CSS transition ending abruptly on mouse-out?

梦想的初衷 提交于 2019-11-30 18:22:24
问题 I was just testing few CSS transitions( I am beginner in CSS ). All of the transitions are going smooth. But in one of the transition, when mouseover is done transition plays smoothly, and as soon as you do a mouse out it abruptly ends. In all other cases, mouseover and mouseout both are playing fine. What is the reason why the transition is ending in such manner? How to fix it? ( Fixed: Thanks to @Edwin ). Now, please explain Why it is not working with no changes. jsbin: http://jsbin.com