animate.css

Owl carousel caption with animate.css

二次信任 提交于 2019-12-11 02:50:31
问题 i'm trying to make captions in owl carousel. i'm using animate.css. I've added animation to captions in carousel but it's not working for all. Only first slides caption have animation. Here is my code; <div class="owl-carousel owl-theme"> <div class="item"><img src="http://placehold.it/900x1200"> <div class="caption"><h1 class="animated bounce">First Caption</h1></div> </div> <div class="item"><img src="http://placehold.it/900x1200"> <div class="caption"><h1 class="animated bounce">Second

Animating ui-view without position:absolute

与世无争的帅哥 提交于 2019-12-10 15:26:18
问题 I have the following structure in my Angular app: <header></header> <section> <div ui-view></div> </section> <footer> Where my ui-view uses animate.css to bounce in and out of the screen. My problem is that during animation I get two instances of <div ui-view> on top of each other, pushing the first instance down. All of the examples I can find get around this by using position: absolute but since I don't know the height of the ui-view in advance and have a <footer> below my <div ui-view>

jQuery Waypoints - multiple divs with same CLASS

戏子无情 提交于 2019-12-08 11:55:55
问题 I have followed this tutorial: http://spin.atomicobject.com/2015/05/31/scroll-anmiation-css-waypoints/ successfully. I would like to apply the fadein on almost every element on the page. This means using this jQuery method that I would ned to create separate Classes for each element and duplicate the code, because otherwise every element with the same class currently fades in with the first Waypoint only. Here is what I had: // hide our element on page load $('.fade-in').css('opacity', 0); $(

vue 过渡

纵然是瞬间 提交于 2019-12-07 02:11:35
添加过渡效果的方法: 在 CSS 过渡和动画中自动应用 class 可以配合使用第三方 CSS 动画库,如 Animate.css 在过渡钩子函数中使用 JavaScript 直接操作 DOM 可以配合使用第三方 JavaScript 动画库,如 Velocity.js 1、单组件或子元素过渡,使用<transition>: <transition name="fade"> <p v-if="show">hello</p> </transition> .fade-enter-active, .fade-leave-active { transition: opacity .5s; } .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ { opacity: 0; } 2、使用类名过渡: 在进入/离开的过渡中,会有 6 个 class 切换。 v-enter :定义进入过渡的开始状态。在元素被插入之前生效,在元素被插入之后的下一帧移除。 v-enter-active :定义进入过渡生效时的状态。在整个进入过渡的阶段中应用,在元素被插入之前生效,在过渡/动画完成之后移除。这个类可以被用来定义进入过渡的过程时间,延迟和曲线函数。 v-enter-to : 2.1.8版及以上

vue 过渡

谁说胖子不能爱 提交于 2019-12-07 02:04:22
添加过渡效果的方法: 在 CSS 过渡和动画中自动应用 class 可以配合使用第三方 CSS 动画库,如 Animate.css 在过渡钩子函数中使用 JavaScript 直接操作 DOM 可以配合使用第三方 JavaScript 动画库,如 Velocity.js 1、单组件或子元素过渡,使用<transition>: <transition name="fade"> <p v-if="show">hello</p> </transition> .fade-enter-active, .fade-leave-active { transition: opacity .5s; } .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ { opacity: 0; } 2、使用类名过渡: 在进入/离开的过渡中,会有 6 个 class 切换。 v-enter :定义进入过渡的开始状态。在元素被插入之前生效,在元素被插入之后的下一帧移除。 v-enter-active :定义进入过渡生效时的状态。在整个进入过渡的阶段中应用,在元素被插入之前生效,在过渡/动画完成之后移除。这个类可以被用来定义进入过渡的过程时间,延迟和曲线函数。 v-enter-to : 2.1.8版及以上

vue 过渡

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 16:26:55
添加过渡效果的方法: 在 CSS 过渡和动画中自动应用 class 可以配合使用第三方 CSS 动画库,如 Animate.css 在过渡钩子函数中使用 JavaScript 直接操作 DOM 可以配合使用第三方 JavaScript 动画库,如 Velocity.js 1、单组件或子元素过渡,使用<transition>: <transition name="fade"> <p v-if="show">hello</p> </transition> .fade-enter-active, .fade-leave-active { transition: opacity .5s; } .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ { opacity: 0; } 2、使用类名过渡: 在进入/离开的过渡中,会有 6 个 class 切换。 v-enter :定义进入过渡的开始状态。在元素被插入之前生效,在元素被插入之后的下一帧移除。 v-enter-active :定义进入过渡生效时的状态。在整个进入过渡的阶段中应用,在元素被插入之前生效,在过渡/动画完成之后移除。这个类可以被用来定义进入过渡的过程时间,延迟和曲线函数。 v-enter-to : 2.1.8版及以上

animate.css animating distance

前提是你 提交于 2019-12-06 01:12:48
问题 I am using animate.css for a login form. It works except not the way I want it to work. Currently I am using fadeInDown but it fades in down from a longer distance that I want. It fades in from off the viewport versus just fading in about 20px . I hope that makes sense. https://daneden.github.io/animate.css/ <link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css" rel="stylesheet" /> <div id="login"> <div class="row animated fadeInDown"> <img src="logo.png"/>

How to hide animated elements on load?

一世执手 提交于 2019-12-04 18:32:13
问题 I'm using animate.css with waypoints.js in my landing page. I want to animate elements when user scrolls the page. But, the problem is that I need to hide elements before the animation starts(if i don't hide, animate.css hides element first and then animates in, that looks pretty ugly). However, I solved problem by adding two classes in my css but it creates another problem. .visible{ opacity: 1; } .invisible {opacity: 0; } // I added following jquery code $('elem').removeClass('invisible')

Full screen video issue when using animate.css in Chrome

和自甴很熟 提交于 2019-12-04 10:48:30
I have a page that has a video using the video tag. Also, my page uses the animate.css to add some animations to my elements. The issue is that when I use a style in the animate.css, My video does not go to full screen correctly. This is a sample of my page: <div id="wrapper"> <div id="page-wrapper" class="gray-bg dashbard-1"> <h2 id="sv_title">Here is some text for illustration</h2> <div class="animated fadeInRight"> <video src="http://www.w3schools.com/html/mov_bbb.mp4" controls=""></video> </div> </div> </div> https://jsfiddle.net/p4nmt637/ Also, this issue seems to happen only in chrome, I

Animate.css - Wait for animation to finish before continuing

元气小坏坏 提交于 2019-12-04 06:16:01
问题 I'm currently using Animate.css for animation around the app I'm creating. I'm looking for a way to wait for the animation to finish before continuing. Here's what I thought would of worked, but doesn't. Any help is appcieated! $("#myDiv").addClass("animated flipOutY", function() { return $("#myDiv").empty(); }); 回答1: There's no cross-browser way to do this except for setting a timeout. setTimeout($('#myDiv').empty, 500); There are some browser-prefixed methods for this, but I think I