css-transitions

Webkit Opacity Transition Issues with Text

戏子无情 提交于 2019-11-30 11:27:18
问题 Situation: View the jsFiddle Inside of a div I have an image followed by text which has a font-weight of 900 on it. In my locally hosted environment I'm using a custom font, but for the fiddle above I chose the "ever-so-stylish" Comic Sans to illustrate my point. Before anything happens I set the opacity of the entire div to 0.7. However, on hovering over the div , I want the opacity of everything to come to full opacity. Problem: I've noticed that in Webkit browsers only (more apparent on

css3 webkit animation stop on div:hover

徘徊边缘 提交于 2019-11-30 09:17:46
I try to make an animation with webkit-animation and @-webkit-keyframes. I have a div animated with child div inside. And i would stop the webkit-animation of the parent when my mouse is over a child. Any Examples ? Thanks methodofaction Unfortunately there is no parent selector in CSS, see here . You will have to use a bit of javascript to select the parent and tell it to pause. The pause declaration in CSS goes like this: -webkit-animation-play-state: paused | running; The javascript (jQuery, in this case) would look something like this: $(".child").hover( function(){ $(this).parent().css("

Indicate that processor-heavy JS function is running (GIF spinners don't animate)

孤人 提交于 2019-11-30 06:43:50
Showing then hiding animated indicator / spinner gifs are a good way to show a user that their action has worked and that something is happening while they wait for their action to complete - for example, if the action requires loading some data from a server(s) via AJAX. My problem is, if the cause of the slowdown is a processor -intensive function, the gif freezes. In most browsers, the GIF stops animating while the processor-hungry function executes . To a user, this looks like something has crashed or malfunctioned, when actually it's working. JSBIN example Note: the "This is slow" button

CSS 3 - transition prefixes - which ones to use?

血红的双手。 提交于 2019-11-30 06:38:52
I have a question regarding the CSS vendor prefixes for transition. This source states that "you need to use all the usual prefixes to make this work in all browsers (-o-, -webkit-, -moz-, -ms-)". That page only shows the -webkit- and -moz- prefixes and claims that IE 10+, FF 16+ and Opera 12.1+ can read the prefix free version. In the code of Twitter Bootstrap, there is always exists a -webkit- , -moz- and -o- prefixed version in addition to the un-prefixed version. What prefixes should I use? http://caniuse.com/#search=transition says that you need -webkit- and plain property for modern

Using CSS to transition the fill property of an SVG path on hover

≡放荡痞女 提交于 2019-11-30 06:19:18
问题 I'm including an SVG image file on my page within an object tag, like this: <object type="image/svg+xml" data="linkto/image.svg"> <!-- fallback image in CSS --> </object> The image in question is a world map, i want to transition the fill property when the mouse hovers over a group , in this case I've grouped my SVG by continent, so South America looks something like this: <g id="south_america"> <path fill="#FAFAFA" d="(edited for brevity)"/> </g> I can get the fill property to change on

I Want To Apply Delay On Mouse Out in css

a 夏天 提交于 2019-11-30 05:17:00
I am trying to apply a delay before starting a CSS transition on mouse out event. My CSS code is below, please let me know how to apply time delay before CSS transition on mouse out starts. I want to achieve that the menu stays stable for some time (e.g. for 3 seconds) after the user moves mouse pointer out of the menu. .timnav li .dropdown { width: auto; min-width: 0px; max-width: 230px; height: 0; position: absolute; overflow: hidden; z-index: 999; background:rgba(255, 255, 255, 0.8); } .timnav li:hover .dropdown { min-height: 60px; max-height: 500px; height: auto; width: 100%; padding: 0;

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 04:55:01
问题 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. 回答1: The jQuery animate enhanced plugin uses CSS

Slide down animation from display:none to display:block?

。_饼干妹妹 提交于 2019-11-30 04:48:31
Is there a way to animate display:none to display:block using CSS so that the hidden div slides down instead of abruptly appearing, or should I go about this a different way? HTML: <div id="box"> Initial Content <div class="hidden"> This is hidden content </div> </div> CSS: #box { height:auto; background:#000; color:#fff; cursor:pointer; } .hidden { height:200px; display:none; } .hidden.open { display:block; } And here is my script: $(document).ready(function() { $('#box').click(function() { $(this).find(".hidden").toggleClass('open'); }); }); And a JSFiddle sinisake Yes, there is a way: http:

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

自作多情 提交于 2019-11-30 04:48:13
问题 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! 回答1: Are you looking for this ? Running Demo Encapsule each letter in a <span> element with jQuery; $(".start").html($(".start").html().replace(/./g, "

-webkit-transition with display

天涯浪子 提交于 2019-11-30 04:47:32
Is there a way to use -webkit-transition with display ? I'm using CSS display to hide and show a navigations second level … but only display: none and display: block on :hover is a little un-sexy… a ease would be great (like -webkit-transition: display 300ms ease-in; ) I know that's fairly easy to do this with jQuery, but I'm currently trying to setup everything with CSS3 (i know: not all browsers do support it, but that's irrelevant for this one project I'm currently working on) here's some code & structure: (the li.menu1 has a :hover with section.nav-menu1 {display: block;} ) <ul> <li class=