jQuery实现的动态文字变化输出效果示例【附演示与demo源码下载】

 更新时间:2017年03月24日 11:26:27   作者:xw  
这篇文章主要介绍了jQuery实现的动态文字变化输出效果,采用jquery.quoterotator.min.js插件实现了文字动态变换显示的功能,并附带演示与demo源码供读者下载参考,需要的朋友可以参考下

本文实例讲述了jQuery实现的动态文字变化输出效果。分享给大家供大家参考,具体如下:

演示效果图如下:

1、完整实例代码:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <title>jQuery制作动态文字变化输出效果</title>
  <link rel="stylesheet" href="css/reset.css" rel="external nofollow" >
  <link rel="stylesheet" href="css/style.css" rel="external nofollow" >
  <link rel="stylesheet" href="css/animate.css" rel="external nofollow" >
  <script src="js/jquery.1.9.1.min.js" type="text/javascript"></script>
  <script src="js/jquery.quoterotator.min.js" type="text/javascript"></script>
  <script>
  jQuery(document).ready(function($) {
    $('#words').quoteRotator();
  });
  </script>
</head>
<body>
<div id="wrapper">
  <div id="words">
    <ul class="word-container">
      <li data-author="--- Morrie Schwartz" data-easeout="lightSpeedOut">
      The most important thing in life is to learn how to give out love, 
      and to let it come in. </li>
      <li data-author="">所 有 的 瞬 间 都 会 淹 没 于 时 间 的 洪 流,就 像 泪 水 消 逝 在 雨 中。 
      All those moments will be lost in time, like tears in rain.</li>
      <li data-author="" data-easeout="fadeOutDown">The animation can be 
      in random or pre-defined in the HTML. Next quote animation will be 
      all in fadeInDown. Optional click to next quote and hover to pause 
      the slideshow.</li>
      <li data-author="Mark Twain (1835 - 1910)" data-easein="fadeInDown">
      Always do right. This will gratify some people and astonish the 
      rest. </li>
      <li data-author="--- Susan Rice, Stanford University Commencement, 2010" data-easeout="bounceOut">
      Progress is the product of human agency. Things get better because 
      we make them better. Things go wrong when we get too comfortable, 
      when we fail to take risks or seize opportunities. </li>
      <li data-author="--- Arlo Guthrie (1947 - )" data-easein="bounceIn">
      You can&#39;t have a light without a dark to stick it in. </li>
      <li data-author="--- Mahatma Gandhi (1869 - 1948)" data-easein="lightSpeedIn">
      You must not lose faith in humanity. Humanity is an ocean; if a few 
      drops of the ocean are dirty, the ocean does not become dirty. </li>
      <li data-author="--- Abraham Lincoln (1809 - 1865), (attributed)">
      When I do good, I feel good; when I do bad, I feel bad, and that is 
      my religion. </li>
      <li data-author="--- John Wanamaker (1838 - 1922), (attributed)">
      Half the money I spend on advertising is wasted; the trouble is I 
      don&#39;t know which half. </li>
    </ul>
    <div class="quote">
      <blockquote>
       <p class="quote-content"></p>
      </blockquote>
      <cite class="quote-author"></cite>
    </div>
  </div>
</div>
</body>
</html>

2、在线演示地址:

http://demo.jb51.net/js/2017/jquery-quoterotator-txt-cartoon-codes/

附:完整实例代码点击此处本站下载

PS:这里再为大家推荐几款相关的特效工具供大家参考使用:

在线特效文字/彩色文字生成工具:
http://tools.jb51.net/aideddesign/colortext

在线彩虹文字/颜色渐变文字生成工具:
http://tools.jb51.net/aideddesign/txt_caihongzi

在线发光字生成工具:
http://tools.jb51.net/aideddesign/txt_faguangzi

仿古书排版文字竖排转换工具:
http://tools.jb51.net/transcoding/shupai

更多关于jQuery相关内容感兴趣的读者可查看本站专题:《jQuery常用插件及用法总结》、《jquery中Ajax用法总结》、《jQuery表格(table)操作技巧汇总》、《jQuery扩展技巧总结》、《jQuery常见经典特效汇总》及《jquery选择器用法总结

希望本文所述对大家jQuery程序设计有所帮助。

相关文章

  • jquery实现checkbox全选全不选的简单实例

    jquery实现checkbox全选全不选的简单实例

    本篇文章主要是对jquery实现checkbox全选全不选的简单实例进行了介绍,需要的朋友可以过来参考下,希望对大家有所帮助
    2013-12-12
  • 移动端jQuery修正Web页面滑动时div问题的两则实例

    移动端jQuery修正Web页面滑动时div问题的两则实例

    这篇文章主要介绍了移动端jQuery修正Web页面滑动时div问题的两则实例,分别针对顶部固定fixed不为0时滑动出现的闪动以及touchmove的受阻止的相关问题,需要的朋友可以参考下
    2016-05-05
  • jQuery实现的简单百分比进度条效果示例

    jQuery实现的简单百分比进度条效果示例

    这篇文章主要介绍了jQuery实现的简单百分比进度条效果,结合简单实例形式分析了jQuery针对页面元素的运算与动态操作相关操作技巧,需要的朋友可以参考下
    2016-08-08
  • jQuery插件的写法分享

    jQuery插件的写法分享

    这几天在学习jQuery插件的写法,搜索了一些资料,包括jQuery官方的示例,但发现描述的并不是很清晰。最后,终于搜索到一篇讲解比较清晰的文章,这里自己总结了一下,并以一个具体的示例来说明jQuery插件的写法
    2013-06-06
  • jQuery在页面加载时动态修改图片尺寸的方法

    jQuery在页面加载时动态修改图片尺寸的方法

    这篇文章主要介绍了jQuery在页面加载时动态修改图片尺寸的方法,实例分析了jQuery操作图片的技巧,非常具有实用价值,需要的朋友可以参考下
    2015-03-03
  • 深入学习jQuery Validate表单验证(二)

    深入学习jQuery Validate表单验证(二)

    这篇文章主要针对jQuery Validate表单验证为大家进行详细介绍,通过name属性来关联字段来验证,改变默认的提示信息,将校验规则写到js代码中,感兴趣的小伙伴们可以参考一下
    2016-01-01
  • 基于jquery实现一个滚动的分步注册向导-附源码

    基于jquery实现一个滚动的分步注册向导-附源码

    使用jQuery实现很多很有意思的应用效果。我们在很多网站注册会员时,需要填写注册表单,包括登录信息、个人联系信息等,本文将带您一起体验jQuery实现的一个可以滚动的十分友好的分步注册向导,需要的朋友可以参考下
    2015-08-08
  • jquery ui dialog替代confirm实例分析

    jquery ui dialog替代confirm实例分析

    这篇文章主要介绍了jquery ui dialog替代confirm的实现方法,结合实例形式分析了jQuery ui插件的dialog模拟confirm功能的具体步骤与实现技巧,需要的朋友可以参考下
    2016-01-01
  • jquery 全选、全不选、反选效果的实现代码【推荐】

    jquery 全选、全不选、反选效果的实现代码【推荐】

    下面小编就为大家带来一篇jquery 全选、全不选、反选效果的实现代码【推荐】。小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
    2016-05-05
  • jQuery使用hide方法隐藏元素自身用法实例

    jQuery使用hide方法隐藏元素自身用法实例

    这篇文章主要介绍了jQuery使用hide方法隐藏元素自身用法,实例分析了jQuery中hide方法的原理与使用技巧,具有一定参考借鉴价值,需要的朋友可以参考下
    2015-03-03

最新评论