css-transitions

jQuery Waypoints Refresh with CSS Transition

送分小仙女□ 提交于 2019-12-06 02:37:18
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('refresh'); }, { offset: 300 }); jQuery('#servicewrap').waypoint( function() { jQuery('#servicewrap

Are CSS3 properties like animate too CPU intensive?

佐手、 提交于 2019-12-06 02:01:08
问题 will this repetitive animation code slow down my system?: @-webkit-keyframes animate {-webkit-animation-iteration-count:infinite;...} Are all CSS3 properties CPU intensive ? Thanks. 回答1: Avoid using box-shadow & text-shadow. Don't try and animate the whole page, or the body element and use translate3d, scale3d, rotate3d as they are hardware accelerated on computers and mobile devices. As stated above, avoid the OVERUSE of animating properties. I however doubt that one or even four infinitely

Fade in dynamically generated content with Bootstrap 3

╄→尐↘猪︶ㄣ 提交于 2019-12-06 01:20:08
I've read several similar questions on SO regarding Bootstrap's fade classes, but none of them seem to address my issue. I understand that the fade animation in Bootstrap 3 works by switching opacity between 0 and 1 when you add the .in class to an element that already has a .fade class. This works fine for me when dealing with an element that already exists in the HTML (for example, this JS Fiddle demo ). The problem is that the transition doesn't seem to happen when the element is created dynamically with Javascript. For example, the following code will create and display an alert, but the

Why is rotateY (flip) css3 animation flickering in Chrome?

纵饮孤独 提交于 2019-12-06 01:02:29
问题 I have made a jsFiddle: http://jsfiddle.net/Grezzo/JR2Lu/ When you hit the i key on your keyboard, the picture flips around to show some text, but during the flip animation it flickers (particularly the text flickers) when viewed in Chrome. (note that I am using -prefix-free JS library so that I don't have to prefix with browser specific CSS properties.) Why is it flickering and how can I stop it? UPDATE: Flicker is noticable on Chrome 20.0.1132.47 m running on XP, and whatever the latest

Image substitution and transition with css3?

﹥>﹥吖頭↗ 提交于 2019-12-06 00:25:49
I wonder If anybody knows a clever and new way how to make a transition between two background images? I know there are multiple tutorials out there just most of them are outdated and old. I wonder if there is a clever and modern CSS3 way of doing something like this. I have a simple logo.png set as background to a div.logo (I want it to be set as a background image not via img src ). And when I hover over it I want a smooth transition to "logo-hover.png" which is the same file just in a different color. Any ideas how to do this nowadays? My approach would be this: - I create a outer container

How can I prevent a responsive nav menu (powered by a CSS3 transition) from animating when different media queries take effect?

邮差的信 提交于 2019-12-05 23:19:09
问题 Preface I'm trying to create a responsive website with a navigation menu that satisfies the following two requirements: Navigation is fully visible in a normal browser window, laid out horizontally. Navigation becomes a toggleable vertical menu for mobile devices and small screens, which animates between its "opened" and "closed" state. I want performance to be good on mobile devices — especially on iOS — which means that the animation should use a GPU-accelerated translate3d transform CSS

Trigger CSS3 transition on page load

两盒软妹~` 提交于 2019-12-05 22:52:07
问题 I am trying to achieve a loading effect on the page load by CSS3 width transition. Here is the demo. HTML <div class="skill-bar"> <span class="w70"></span> </div> CSS .skill-bar { width: 57%; float: left; height: 11px; border-radius: 5px; position: relative; margin: 6px 0 12px 0; border: 2px solid #00edc2; } .skill-bar span { background: #00edc2; height: 7px; border-radius: 5px; display: inline-block; } .skill-bar span.w70 { width: 70%; } .skill-bar span { width: 0; transition: width 1s ease;

Keep width when using letter-spacing on hover

▼魔方 西西 提交于 2019-12-05 20:50:07
I have a some basic button styles where on :hover I add the letter-spacing property: .btn { display: inline-block; text-align: center; background-color: transparent; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; border-radius: 0.25rem; cursor: pointer; transition: all 0.2s ease; } .btn-primary { background-color: #8065F1; color: #FFFFFF; } .btn-large { border-radius: 32px; box-shadow: 0 2px 80px 0 rgba(74, 74, 74, 0.23); padding: 0.25rem 3rem; font-size: 1.5rem; text-transform: uppercase; } .btn:hover { letter-spacing: 4px; } <button type="button" class="btn btn

Image shifting/jumping after CSS transition effect with scale transform in Firefox

ぃ、小莉子 提交于 2019-12-05 20:20:32
问题 I have a problem in latest Firefox browser version 34 (system: Windows 7, screen width: 1600px). I made effect with zooming images (in some container) after hover on it. I am using transform: scale(1.1) with transition: transform 0.3s ease-in-out . But when I hover on image, and after image zoom in.. it make some strange 1px-shifting. Some rendering browser bug, but I hope that existing some fix for it. Please, help! Most important CSS definition and part of HTML code: figure { display: block

CSS transition on png sequence using steps

拈花ヽ惹草 提交于 2019-12-05 19:51:50
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 off the element, the transition seems to trigger when the background image if halfway through the