fade

Fade in tabs in Zurb Foundation?

浪尽此生 提交于 2019-11-29 22:37:43
问题 I'm trying to figure out if there's setting to fade in tabs nicely in Zurb Foundation. If not, does anyone know the best way to achieve this manually? What to target in jQuery? Thanks. 回答1: Replace this line of code u.css("display","block").addClass("active") with u.fadeIn('slow').addClass("active") on line 49 of foundation.min.js if you are using the uncompressed js NB: i have not tested for uncompressed js Replace this line of code $content.css('display', 'block').addClass('active'); with

Javascript: Fade element from specidied opacity to specified opacity?

冷暖自知 提交于 2019-11-29 17:54:01
I am trying to find a function that can fade an element from a specified transparency to a specified transparency. For example from 0 to .7 but everything I can find just fades either from 0 to 1 or 1 to 0. I can't find anything that lets you specify from what to what. My attempts of reverse engineering the functions I have found have also failed as every example I have found has been pretty cryptic. Also I want to do this WITHOUT any frameworks. Thanks!! There is no particular trick to it, you just set the opacity style to something other than 0 or 1 repeatedly in a timeout/interval. Here's a

jQuery: interrupting fadeIn()/fadeOut()

别说谁变了你拦得住时间么 提交于 2019-11-29 17:19:39
问题 Let's say I've called $element.fadeIn(200). 100 ms later, something happens on that page and I want to interrupt that fade and immediately fadeOut(). How can I do this? If you call calling $element.fadeIn(200).fadeOut(0), the fadeOut() only happens after the fadeIn() has finished. Also, is there a way I can examine $element to determine if a fadeIn() or fadeOut() is running? Does $element have any .data() member that changes? 回答1: stop() will only remove animations that are not executed yet.

jQuery fadeToggle if currently animated, ignore further input

时光毁灭记忆、已成空白 提交于 2019-11-29 11:33:26
I've got some thumbnails that have a play button that fades in on top of them when you hover. My issue is that when you hover over them repeatedly, say three times, they fade in and out three times. I once ran into a jQuery function that included an if then statement roughly saying if it's animated disregard further input.. But I'm not sure what the syntax is to do such a thing. Ideas? Thank you! Here's a jsFiddle: http://jsfiddle.net/danielredwood/66FwR/10/ HTML: <div id="music_right"> <div class="thumbnail" id="paparazzi"> <a class="playback"> <img class="play" src="http://www.lucisz.com

jQuery fade flickers

扶醉桌前 提交于 2019-11-29 11:25:33
I have jQuery fade going here: http://dougie.thewestharbour.com/ When you hover over the .main-overlay div I would like it to fade out then when you take your mouse off of it, I would like it to fade back in. However, you can see it's just flickering right now. I'm guessing it's because the div disappears so it's treated as a mouseout when it's faded out but I'm not sure how to go about solving it. Here is my javascript: $(document).ready(function () { $('.main-overlay').hover( //Mouseover, fadeIn the hidden hover class function() { $(this).fadeOut('1000'); }, //Mouseout, fadeOut the hover

Fade in on mouse movement

旧时模样 提交于 2019-11-29 03:26:58
问题 How do I fade in div content on first mouse movement, like on google.com, using JavaScript? I don't want it to fade out again. 回答1: Code: (See it in action) // attach event handler document.body.onmousemove = function(){ fadeIn( this, 1000 ); // 1000ms -> 1s this.onmousemove = null; // remove to only fade in once! }; // sets the opacity of an element (x-browser) function setOpacity( obj, value ) { if ( obj ) { obj.style.opacity = value / 100; obj.style.filter = 'alpha(opacity=' + value + ')';

vue transition动画学习

馋奶兔 提交于 2019-11-29 00:47:17
文章目录 文章参考 问题描述 概念解释 案例 自定义动画 引用animate.css动画 动画钩子函数 案例解析 文章参考 进入/离开 & 列表过渡 问题描述 今天在学习Vue动画的时候,发现对组件的属性不熟悉,以下作为复习的内容 概念解释 动画状态分为“开始状态” ---- “过渡状态” ----“结束状态” 显示: enter ------ enter-active ------- enter-to 隐藏: leave ------- leave-active ------ leave-to 案例 自定义动画 <!DOCTYPE html> < html lang = " en " > < head > < meta charset = " UTF-8 " > < meta name = " viewport " content = " width=device-width, initial-scale=1.0 " > < meta http-equiv = " X-UA-Compatible " content = " ie=edge " > < title > Document </ title > < script src = " ../js/vue.js " > </ script > </ head > < style > .box { height : 100px

Is there a way to disable/edit the fading that a list view has at its edges?

别说谁变了你拦得住时间么 提交于 2019-11-28 23:40:50
问题 Scrollable views such as the ListView have a fade out of the content along the edges where there is more content in that direction. How can I turn this fading off? I know you can change the cacheColorHint as discussed here: http://developer.android.com/resources/articles/listview-backgrounds.html but that is not what I am looking for and will not achieve what I am looking for in this case. I want to disable the fade completely or be able to reduce the size and or transparency of it. Is this

angularjs chained fade-in / fade-out transition

ⅰ亾dé卋堺 提交于 2019-11-28 22:16:05
问题 I have looked at the official show/hide transition example at the bottom of this page... http://docs.angularjs.org/api/ng.directive:ngShow I have tried to modify it to get a seemless fade transition (transition: opacity 0.5s ease-in-out) from one div to the other, where both divs occupy the exact same position on the page, so that one div completely fades out before the other div begins to fade in. In jquery, it would be as simple as: $("#divA").fadeOut(function() { $("divB").fadeIn(); });

Change background-image of a div with fade effect every 10 seconds with jquery

眉间皱痕 提交于 2019-11-28 21:57:20
I would like to create a slideshow in the header area of my page. It should change the background image every 10 seconds with a nice fade effect. And since I'm using jQuery for other stuff already I would like to use it for that as well. So my markup is just: <div id="header"> <!--other stuff here...--> </div> And my CSS at the moment is: #header { background: url('images/header_slides/slide_1.jpg') no-repeat; } So now what I want is that after 10 seconds it would change to #header { background: url('images/header_slides/slide_2.jpg') no-repeat; } with a nice slow fade effect. Hussein I