- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
谁能帮我举个例子,说明如何在轮播元素处于事件状态时启动动画。
我正在使用 daneden.me/animate/他的 css,动画在下一个元素被触发后立即开始。现在我想要的是让它在幻灯片完成后开始。
这是我的HTML
<div class="item active">
<div class="row" style="position:relative;">
<div class="col-lg-6">
<h1 class="animated fadeInLeft">Bespaar kosten met een overstap naar LED!</h1>
<div class="lead">
<p class="animated fadeInLeft animation-delay-hs">
Met LED verlichting bespaard u al snel <strong>40 tot 60%</strong> op uw energy kosten. <strong>wat LED u?</strong>
</p>
<a href="#" class="animated animation-delay-hs fadeInLeft btn btn-default btn-large">Vraag een offerte op maat aan</a>
<a href="#" class="animated animation-delay-hs fadeInLeft btn btn-warning btn-large">Lees meer</a>
</div>
</div>
<div class="col-lg-6 hero-led" style="position:absolute; bottom:0; right: 0;">
<img src="img/hero-1.png" class="animated fadeInRightBig img-responsive hero-led-light" alt="">
<img src="img/hero-1-light.png" class="animation-delay-2s hero-light-delay animated fadeIn img-responsive" alt="">
<img src="img/hero-1-light-2.png" class="animation-delay-3s hero-light-delay animated fadeIn img-responsive" alt="">
<img src="img/hero-1-light-3.png" class="animation-delay-4s hero-light-delay animated fadeIn img-responsive" alt="">
</div>
</div>
</div>
css 是从 daneden 的 animated.css 加载的。 .
最佳答案
当我读到你的问题并看到你的 html 代码时。我不明白为什么你的过渡类已经在里面了。
对于过渡,您必须从隐藏的元素开始(不透明度:0;)。在此之后添加过渡类,使其可见并具有某种效果。 https://github.com/daneden/animate.css显示了如何使用 jQuery 执行此操作。
我认为你应该做这样的事情。为一些幻灯片创建轮播和过渡。运行轮播,将其停在过渡幻灯片上,播放过渡并重新启动轮播。
第二张幻灯片上的过渡示例(索引 = 1):
$('.carousel').carousel();
$(".carousel").on('slid.bs.carousel', function(evt) {
if( $(this).find('.active').index() == 1)
{
$(this).carousel('pause');
/* run your transitions */
transitions();
/*restart your carousel */
}
});
找到事件幻灯片的索引:https://stackoverflow.com/a/18690905/1596547停止(并重新启动)您的旋转木马:https://stackoverflow.com/a/14753680/1596547
Bootstrap 附带了 transition.js,您可以使用它为您的代码添加一些回退。为了防止您的代码在转换运行时运行,您需要将其添加到超时中。请参阅:jQuery/Javascript - How to wait for manipulated DOM to update before proceeding with function
例如创建这个函数:
function transitions()
{
var j = 1;
for(var i=1; i<=4; i++)
{
setTimeout(
function()
{
if (!$.support.transition){$('#z'+i).removeClass('inactive')}
else
{
$('#z'+j).addClass('animated').addClass('fadeInLeft');
$('#z'+j).one($.support.transition.end, function(){$('#z'+i).removeClass('inactive')}).emulateTransitionEnd(2000);
}
j++
},
2000*(i-1));
}
}
此代码为每个 z* 元素添加过渡类。下一个转换在第一个转换后 2 秒(超时 2000 毫秒)开始。
html:
<p class="inactive" id="z1">
Met LED verlichting bespaart u al snel <strong>40 tot 60%</strong> op uw energie kosten. <strong>wat LED u?</strong>
</p>
<p class="inactive" id="z2">
Met LED verlichting bespaart u al snel <strong>40 tot 60%</strong> op uw energie kosten. <strong>wat LED u?</strong>
</p>
<p class="inactive" id="z3">
Met LED verlichting bespaart u al snel <strong>40 tot 60%</strong> op uw energie kosten. <strong>wat LED u?</strong>
</p>
<div class="inactive" id="z4">
<a href="#" class="btn btn-default btn-large">Vraag een offerte op maat aan</a>
</div>
CSS:
//hide the z* elements
.inactive{opacity:0;}
因为上面的代码执行了 4 次 2 秒的转换,轮播将在 5 x 2 秒后重新启动:
var that = $(this);
/*restart your carousal */
setTimeout(function(){
that.carousel('next');
that.carousel('cycle');
/* hide transitions again */
$("#slide2 [id^='z']").removeClass().addClass('inactive');
},2000*5);
<!DOCTYPE html>
<html>
<head>
<title>Carousel with transitions</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<style type="text/css">
</style>
<link href="/bootstrap3/bootstrap-master/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="/animate.min.css" rel="stylesheet">
<style>
body {padding-top:80px;}
.inactive{opacity:0;}
</style>
</head>
<body>
<header class="navbar navbar-default navbar-fixed-top" role="banner">
<div class="col-10">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Logo Text</a>
</div>
<nav class="collapse navbar-collapse navbar-ex1-collapse" role="navigation">
<ul class="nav navbar-nav navbar-right">
<li class="home_button"> <a href="#"> <span class="glyphicon glyphicon-home"></span> </a> </li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
<ul class="dropdown-menu">
<li> <a href="#" > My Account </a> </li><br>
<li> <a href="#"> Logout </a> </li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</header>
<div class="container" style="max-width:900px;">
<div id="carousel-example-captions" class="carousel slide bs-docs-carousel-example">
<ol class="carousel-indicators">
<li data-target="#carousel-example-captions" data-slide-to="0" class="active"></li>
<li class="" data-target="#carousel-example-captions" data-slide-to="1"></li>
<li class="" data-target="#carousel-example-captions" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img data-src="holder.js/900x500/auto/#777:#777" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAH0CAYAAABl8+PTAAALGUlEQVR4nO3XoQEAMAyAsH7d87czKoiIxzK7+wAAAOiZ6wAAAABuGEIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwg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IAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABD1AcvKO4a+zjA6AAAAAElFTkSuQmCC" alt="900x500">
<div class="carousel-caption">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="item" id="slide2">
<img data-src="holder.js/900x500/auto/#666:#666" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAH0CAYAAABl8+PTAAALGklEQVR4nO3XIQEAMAzAsKmdfwe/jIEGhJd2dvcBAADQM9cBAAAA3DCEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIA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FOB4oKwAAAABJRU5ErkJggg==" alt="900x500">
<div class="carousel-caption">
<h3>Second slide label</h3>
<p class="inactive" id="z1">
Met LED verlichting bespaart u al snel <strong>40 tot 60%</strong> op uw energie kosten. <strong>wat LED u?</strong>
</p>
<p class="inactive" id="z2">
Met LED verlichting bespaart u al snel <strong>40 tot 60%</strong> op uw energie kosten. <strong>wat LED u?</strong>
</p>
<p class="inactive" id="z3">
Met LED verlichting bespaart u al snel <strong>40 tot 60%</strong> op uw energie kosten. <strong>wat LED u?</strong>
</p>
<div class="inactive" id="z4">
<a href="#" class="btn btn-default btn-large">Vraag een offerte op maat aan</a>
</div>
</div>
</div>
<div class="item">
<img data-src="holder.js/900x500/auto/#555:#5555" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAH0CAYAAABl8+PTAAALGklEQVR4nO3XIQEAMAzAsJmcfym/jIEGhJd2dvcBAADQM9cBAAAA3DCEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBl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AABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAgyhACAABEGUIAAIAoQwgAABBlCAEAAKIMIQAAQJQhBAAAiDKEAAAAUYYQAAAg6gMgubGT543s8gAAAABJRU5ErkJggg==" alt="900x500">
<div class="carousel-caption">
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-captions" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="right carousel-control" href="#carousel-example-captions" data-slide="next">
<span class="icon-next"></span>
</a>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="/bootstrap3/bootstrap-master/dist/js/bootstrap.js"></script>
<script>
function transitions()
{
var j = 1;
for(var i=1; i<=4; i++)
{
setTimeout(
function()
{
if (!$.support.transition){$('#z'+i).removeClass('inactive')}
else
{
$('#z'+j).addClass('animated').addClass('fadeInLeft');
$('#z'+j).one($.support.transition.end, function(){$('#z'+i).removeClass('inactive')}).emulateTransitionEnd(2000);
}
j++
},
2000*(i-1));
}
}
$('.carousel').carousel();
$(".carousel").on('slid.bs.carousel', function(evt) {
if( $(this).find('.active').index() == 1)
{
$(this).carousel('pause');
/* run your transitions */
transitions();
var that = $(this);
/*restart your carousal */
setTimeout(function(){
that.carousel('next');
that.carousel('cycle');
/* hide transitions again */
$("#slide2 [id^='z']").removeClass().addClass('inactive');
},2000*5);
}
});
</script>
</body>
</html>
关于css - Bootstrap 轮播 : start css animation after slide is complete,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18060853/
我嵌套了 ul li 列表 > dentry > 隔离 Material 活髓剂 eclipse 刻剂 > dentry 矫正 > dentry 药品 > 口服 使用下面的 html De
我查看了一些关于 fragment 之间的动画交易的教程。我已经将这种方法用于动画并且效果很好: fragmentTransaction.setCustomAnimations(android.R.a
我有面板。我希望面板主体在单击面板标题的加号图标时向下滑动和向上滑动。 我不会使用 jquery。我必须使用纯 CSS3 来完成。 我正在使用 Angular 2 来处理条件。 .slide_down
我正在使用周期 2 ( http://jquery.malsup.com/cycle2/ ) 创建轮播,但我无法弄清楚如何通过“幻灯片编号”访问幻灯片。 我可以使用cycle.API循环遍历幻灯片数组
我是记者和官员软件包的狂热用户,目前正试图过渡到官员的 Powerpoint 工作流程。我正在使用包含幻灯片编号占位符的幻灯片模板。 使用 Reporters 时,我可以使用 doc % add_
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
如何仅在第一张幻灯片上隐藏 ion slide pager?我的代码是这样的: ABC BCD 所以我有 2 张幻灯片,但只有一个标签。 谢谢 最佳答案 你可以使用
(对不起我的英语) 我在使用 Google Slides API 时遇到问题。使用 Google Slides API 创建新演示文稿时如何选择主题? 谢谢。 1.创建演示文稿 functio
有没有办法通过 rest API 更改 Google Slides 表格的表格单元格填充属性? 更新表格单元格属性似乎没有任何单元格填充属性 最佳答案 虽然不完全相同,但可以通过设置单元格文本段落缩进
我尝试让 ion-slide-box 从某个索引开始。 幻灯片 Controller : $ionicSlideBoxDelegate.slide(index); 滑动框温度: ... 这行不通。可能
我有一个看起来像这样的 slider : $('#slider').cycle({ fx: 'scrollHorz', speed: 1250, timeout: 5000,
我一直在剖析 firebug 中的事件和 ui 对象,但它似乎没有任何我可以使用的东西。我错过了什么吗?我想我可以跟踪值的变化,但这似乎是一种困惑。 $(".selector").slider({
我正在构建一个无限的 jQuery 轮播。无限是它在向用户显示最终幻灯片后立即显示第一张幻灯片。为此,我在完成后回调函数中做了这个小调整 $('#slide li:last').after('#sli
我在顶部菜单(ListItems)的开头插入一个菜单选项并使用 $('#newMenuItem').show('slide'); 成功了。但是,我不喜欢它从左上角滑入的方式,所以我将其更改为 $('#
我正在尝试创建新的 4:3 演示文稿,而不是 16:9。 我阅读了此引用文献并编写了一些 ruby 代码,但它不起作用。新演示文稿的高度与我指定的高度不同。 Method: presentatio
我有一个数组,我正在尝试使用其中的信息来创建 Google 幻灯片演示文稿。我需要一些帮助,如果可能的话,还需要一些我可以阅读的 Material ,以便更好地理解这些问题的可能解决方案。 数组如下:
我有一个没有指示器按钮的 Twitter Bootstrap 3 旋转木马。我没有使用那些指示器按钮,而是使用选项卡(我在我的 CSS 中相应地设置了样式)。这样,用户就知道每张幻灯片是什么(基于选项
在我的页面上,我有一个用于图像的 ion-slide-box。由于在我的应用程序中用户将能够嵌入视频,因此我还应该将带有视频的 iframe 添加到同一个 slider 。这就是我的代码现在的样子:
我正在开发全屏 Bootstrap 4 轮播。幻灯片不包含图像,而是包含视频 和标题。 我的目的是将幻灯片的标题放在事件幻灯片的左侧和右侧,在 slider 控件之上,给人以标题被用作控件的印象。所需
这是我遇到问题的特定 View 的 Controller 。 .controller('MenuCtrl', ['$rootScope','$scope','$state','$timeout','$
我是一名优秀的程序员,十分优秀!