css-transitions

CSS3 hidden div fade on in hover?

谁说我不能喝 提交于 2019-12-11 02:32:42
问题 I have my jsfiddle here. http://jsfiddle.net/xC5wN/ I basically want the hidden div to slide open when about is hovered over with a mouse. It's going to be a part of a navigation bar and the description of the page will slow below. I've tried using -webkit-transition: all 0.5s ease-in-out; to no avail. Here is my code: .aboutnav { background-color: #a661ca; } .aboutcontents { display: none; } .aboutnav:hover .aboutcontents { display: block; background-color: #a661ca; } 回答1: LIVE DEMO

CSS while hover a div how to display other class(or) div?

房东的猫 提交于 2019-12-11 02:32:23
问题 this is my sample stylesheet <style> .cover{ margin 0 auto;} .cover .ab{ display:inline-block color:#000; height:25px;} while hover the class .ab class .ac should drop from -25px from 0px .cover .ab:hover .ac{ top:0px } .ac{ position:absolute; top:-25px; height:25px;} </style> my html looks like <body> <div class="cover"> <div class="ab"> </div> </div> <div class="ac"> </div> </body> it doesn't seems to works is there anything wrong in statement please help me thanks n advance. 回答1: .cover

Multiple elements moving circularly - smooth transition

六眼飞鱼酱① 提交于 2019-12-11 02:23:08
问题 I'm attempting to create a circular navigation with n elements navigable by clicking the keyboard's right and left arrows. I use classes with specific CSS3 rotate and translate values and a little bit of javascript in order to change the classes to do so. My problem is that the transition between elements with classes four and five , the one that translates between 360deg and 30deg , which goes in the opposite direction than I want it to. You can see the obvious unwanted behavior here in this

css transitions not working in safari

一世执手 提交于 2019-12-11 02:05:09
问题 If you look at my page http://debourg-dev.ch/crea/ you will see the transition effects on my links don't work in safari (tested on latest version on mac). My code is the following: a { color: inherit; text-decoration: none; -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; } What is the problem? 回答1: It seems Safari has a bug and chokes on transition: all; (or just transition: Xs; because

CSS3 rotateY without transitions applied

假装没事ソ 提交于 2019-12-11 02:04:03
问题 I'm looking for a simple way to take an object and transform its rotateY property without it animating to its pre-set transition. This will help me complete this slide show (ONLY VIEW IN CHROME OR SAFARI (WEBKIT)) Here's a breakdown example of the effect: CSS - Transition is set to 5s Phase1 Element1 - rotateY:0; Element2 - rotateY:-180; User - clicks button Phase2 Element1 - rotateY:180; Element2 - rotateY:0; Phase3 Element1 - rotateY:-180; Element2 - rotateY:0; User - clicks button Phase4

Add class to <html> on link click and add delay Redirection (fade out page)

痞子三分冷 提交于 2019-12-11 01:41:37
问题 I'm trying to add page transitions. The fadeIn transition is done using the WebFont Loader and CSS animations. What I want is to add a class to the html tag on link click and wait 1 second (for the CSS fadeOut animation), then redirect to the link. This is an altered version of this jQuery code: $(document).ready(function() { $("a").click(function(event){ event.preventDefault(); redirectLink = this.href; $("body").fadeOut(1000, redirectToLink); }); function redirectToLink() { window.location

Changing an HTML element's style in JavaScript with its CSS transition temporarily disabled isn't reliably functioning [duplicate]

我只是一个虾纸丫 提交于 2019-12-11 00:56:20
问题 This question already has answers here : How can I force WebKit to redraw/repaint to propagate style changes? (26 answers) Closed last year . Currently I am working on an animation for a website which involves two elements having their position changed over a period of time and usually reset to their initial position. Only one element will be visible at a time and everything ought to run as smoothly as possible. Before you ask, a CSS-only solution is not possible as it is dynamically

CSS3 Display other element on hover

落花浮王杯 提交于 2019-12-11 00:02:35
问题 I'm here trying to display a list item on hovering an anchor tag. How to affect other elements when a div is hovered - tried using this post but I couldn't succeed. I'm here trying this with only pure CSS. Here's the FIDDLE. And below is the code. HTML : <div class="container"> <div class="menu"> <a class="user" href="#">Brett</a> <ul> <li> <a href="#">Settings</a> </li> <li> <a href="#">Logout</a> </li> </ul> </div> </div> CSS : body { font-size: 50px; } .container { margin-top: 100px;

How to reverse a sequence of CSS transitions and transforms which contain span:nth-child

眉间皱痕 提交于 2019-12-10 23:41:56
问题 This CSS "animation" in essence consist of several transitions and transforms on span:nth-children which follow each other sequentially using transition delays. It works fine one way, but what is the best way to reverse the animation? Since it is a sequence the solution should reverse the entire sequence. See fiddle for example: http://jsfiddle.net/musicformellons/6nb0wy68/ #Pqb-icon { background: white; width: 170px; height: 100px; border-radius: 5px; position: relative; overflow: hidden;

css keyframe transform not rotating more than 180 degrees

旧时模样 提交于 2019-12-10 23:13:08
问题 I am trying to build a donut chart with css. I am observing that it is unable to rotate more than 180 degrees. Am I missing anything. This stops me to show donut chart for any data which is more than 50% . http://jsfiddle.net/BkJY7/80/ @-webkit-keyframes rotate-rt { 0% { -webkit-transform: rotate(0deg); } 25% { -webkit-transform: rotate(360deg); } 100% { -webkit-transform: rotate(360deg); } } 回答1: You are missing the keyframes for rotate-lt. Also, some minor adjustments on the angles: body {