html5 滚动图片
2015-05-12 13:55:00 weixin_33965305 阅读数 132

分享一款基于html5可拖拽图片循环滚动切换。这是一款支持手机端拖拽切换的网站图片循环滚动特效。效果图如下:

在线预览   源码下载

实现的代码。

html代码:

 <div id="site-wrapper">
        <section id="section-header" data-coloroverlap="dark"></section>
        <section id="second-phase" class="phase-row" data-title="Illustrations" data-coloroverlap="light">
        <div class="shell">
            <div class="second-row">

                <article>

                    <h2>支持手机触屏滑动展示</h2>

                    <div id="character-slider" class="sky-carousel sc-no-select" style="visibility: visible;">
                        <div class="sky-carousel-wrapper" style="visibility: visible; opacity: 1;">
                            <ul class="sky-carousel-container" style="margin-top: -21.2px; left: -1552.4px; transition: left 0.45s ease-out; -webkit-transition: left 0.45s ease-out;">
                                <li style="transform-origin: center 256px 0px; transform: translate(0px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 10;" class="">
                                    <img src="images/bird1.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Snoop</h2>
                                        <p>Are you in the market for information? If so, then Snoop's the Bird for you! This Bird specialises at working undercover, discretely finding out whatever you need to know. Shhh… it's a secret, alright?</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(241.2px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 8;" class="">
                                    <img src="images/bird2.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Snappy</h2>
                                        <p>Looking for a wedding photographer? Or perhaps you want a portrait of your adorable pooch, to decorate the mantelpiece! When it comes to photography, call Snappy.</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(482.4px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 8;" class="">
                                    <img src="images/bird3.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Handy</h2>
                                        <p>Our Handy Bird loves the jobs you hate… from putting up shelves to fixing a leaky pipe, this Bird is the DIY master. </p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(723.6px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 9;" class="">
                                    <img src="images/bird4.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Blabber</h2>
                                        <p>Got a message that needs to be delivered? Or perhaps it's an urgent package you need sent. Blabber will get your mail to its recipient, faster than a speeding bullet. Well, almost.</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(964.8px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 8;" class="">
                                    <img src="images/bird5.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Wordy</h2>
                                        <p>Wordy loves to talk. No matter whether you're writing an email, a website, your resignation note or your acceptance speech - this Bird always knows what to say!</p>
                                    </div>
                                </li>
                                <li class="" style="transform-origin: center 256px 0px; transform: translate(1206px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 8;">
                                    <img src="images/bird6.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Basher</h2>
                                        <p>When it comes to construction, Basher is the Bird for the job. From putting up fences and garden sheds, through to interior remodelling - this Bird just loves to build.</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(1447.2px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 8;" class="">
                                    <img src="images/bird7.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Splasher</h2>
                                        <p>Splasher is the expert when it comes to painting. From choosing the colours for your new nursery, through to exterior weather proofing treatments: this Bird was born with a brush in its hand!</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(1688.4px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 10;" class="sc-selected">
                                    <img src="images/bird8.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Nerdy</h2>
                                        <p>The ultimate iBird, our Tinker has the know-how that most of us lack. If you find yourself baffled by technology, then join the club - and call on Tinker for all your IT needs.</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(2009.6px, 0px) scale(0.799983333333332) translateZ(0px); opacity: 0.999983333333332; z-index: 11;" class="">
                                    <img src="images/bird9.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Thinker</h2>
                                        <p>Out of all the Birds, Thinker is the brains of the operation. Need a cunning plan delivered in a flash? From business strategies through to first class excuses, Thinker has got a plan for every scenario.</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(2330.8px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 9;" class="">
                                    <img src="images/bird10.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Maestro</h2>
                                        <p>Maestro is no stranger to haute cuisine. From baking lessons through to full-scale catering operations, let Maestro cook you up a treat!</p>
                                    </div>
                                </li>
                                <li style="transform-origin: center 256px 0px; transform: translate(2572px, 0px) scale(0.4) translateZ(0px); opacity: 0.6; z-index: 8;" class="">
                                    <img src="images/bird11.png" alt="" class="sc-image">
                                    <div class="sc-content">
                                        <h2>Super</h2>
                                        <p>Is it a Bird? Is it a… no hang on, it is a Bird. Our Super Bird offers the ultimate, all-in-one service. If you've got a unique problem that the other Birds can't fix, then Super is always ready to come to your rescue.</p>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="sc-content-wrapper"><div class="sc-content-container" style="visibility: visible; opacity: 1;"><div class="sc-content"><h2>Thinker</h2><p>Out of all the Birds, Thinker is the brains of the operation. Need a cunning plan delivered in a flash? From business strategies through to first class excuses, Thinker has got a plan for every scenario.</p></div></div></div><canvas class="sc-overlay sc-overlay-left" width="300" height="1" style="width: 300px;"></canvas><canvas class="sc-overlay sc-overlay-right" width="300" height="1" style="width: 300px;"></canvas></div>
                </article>

            </div>
        </div>
    </section>
    </div>

via:http://***/Article/37412

2013-05-03 11:09:02 xiao1ni1zi 阅读数 896

1、html <img>标签

从技术上讲,<img> 标签并不会在网页中插入图像,而是从网页上链接图像。<img> 标签创建的是被引用图像的占位空间。

<img> 标签有两个必需的属性:src 属性 和 alt 属性

<img>没有结束标签。

例如:

<img src="/i/yujinxiang.jpg" alt="郁金香图片">

2、文字和图片排版

在一个网页中,文字结合图片显示时,图片作为背景图片,可以在段落开始,段落中间或段落结束显示。段落使用<p>标记,图片使用<img>标记。


2014-09-12 16:59:00 weixin_34270865 阅读数 9

1、html <img>标签

从技术上讲,<img> 标签并不会在网页中插入图像,而是从网页上链接图像。<img> 标签创建的是被引用图像的占位空间。

<img> 标签有两个必需的属性:src 属性 和 alt 属性

<img>没有结束标签。

例如:

<img src="/i/yujinxiang.jpg" alt="郁金香图片">

2、文字和图片排版

在一个网页中,文字结合图片显示时,图片作为背景图片,可以在段落开始,段落中间或段落结束显示。段落使用<p>标记,图片使用<img>标记。


转载于:https://my.oschina.net/pangzhuzhu/blog/312982

2016-10-18 17:17:00 weixin_30809333 阅读数 1

<div class="custom-notice">
   <i class="icon-notice"></i>
   <marquee class="noticeText ng-binding" direction="left" behavior="alternate" scrollamount="100" scrolldelay="1000" loop="5" width="100%" onmouseover="this.stop();" onmouseout="this.start();"  style="width: 100%;">充值公告:首充100送1元</marquee>
</div>

 

1.滚动方向属性 direction
该属性的滚动方向可以设置四个值:up(文字向上)、down(文字向下)、left(文字向左)、right(文字向右)。
2.滚动方式属性 behavior
该属性的取值有三个值:scroll(循环滚动,默认效果)、slide(只滚动一次就停止)、alternate(来回交替进行滚动)
3.滚动速度属性 scrollamount
该属性能调整文字滚动的速度,滚动文字的速度实际上是通过设置滚动文字每次移动的长度来实现的,以像素为单位。值只写数字,不带px单位,若带了单位则设置无效。
4.滚动延迟属性 scrolldelay
该属性用来设置滚动文字滚动的时间间隔(滚动两步之间的时间间隔)。
scrolldelay的时间间隔单位是毫秒,取值只写数字
5.滚动循环属性 loop
设置滚动文字后,默认会无限循环下去,若想控制循环的次数,可设置此属性。
6.滚动范围属性 width&height
若想控制文字滚动的范围,则可起用这二属性,以像素为单位,不写px单位。默认情况下left和right滚动的width和浏览器窗口同宽,搞定和文字高度同高。up和down时height为浏览器窗口高度的三分之一。
7.滚动背景颜色属性 bgcolor
此属性为滚动区域设置背景色(取值为十六进制颜色码和英文)。
8.滚动空间属性 hspace&vspace
hsapce属性可以设置滚动范围的水平位置,vspace用来设置滚动范围的垂直位置。单位均为像素,写值时不写单位px。

转载于:https://www.cnblogs.com/-mrl/p/5974132.html

2017-08-16 02:34:21 yang5726685 阅读数 3904

html5实现滚动文字


1
2
3
4
<div class="custom-notice">
   <i class="icon-notice"></i>
   <marquee class="noticeText ng-binding" direction="left" behavior="alternate" scrollamount="100" scrolldelay="1000" loop="5" width="100%" onmouseover="this.stop();" onmouseout="this.start();"  style="width: 100%;">充值公告:首充100送1元</marquee>
</div>

 

1.滚动方向属性 direction
该属性的滚动方向可以设置四个值:up(文字向上)、down(文字向下)、left(文字向左)、right(文字向右)。
2.滚动方式属性 behavior
该属性的取值有三个值:scroll(循环滚动,默认效果)、slide(只滚动一次就停止)、alternate(来回交替进行滚动)
3.滚动速度属性 scrollamount
该属性能调整文字滚动的速度,滚动文字的速度实际上是通过设置滚动文字每次移动的长度来实现的,以像素为单位。值只写数字,不带px单位,若带了单位则设置无效。
4.滚动延迟属性 scrolldelay
该属性用来设置滚动文字滚动的时间间隔(滚动两步之间的时间间隔)。
scrolldelay的时间间隔单位是毫秒,取值只写数字
5.滚动循环属性 loop
设置滚动文字后,默认会无限循环下去,若想控制循环的次数,可设置此属性。
6.滚动范围属性 width&height
若想控制文字滚动的范围,则可起用这二属性,以像素为单位,不写px单位。默认情况下left和right滚动的width和浏览器窗口同宽,搞定和文字高度同高。up和down时height为浏览器窗口高度的三分之一。
7.滚动背景颜色属性 bgcolor
此属性为滚动区域设置背景色(取值为十六进制颜色码和英文)。
8.滚动空间属性 hspace&vspace
hsapce属性可以设置滚动范围的水平位置,vspace用来设置滚动范围的垂直位置。单位均为像素,写值时不写单位px。

html5 解析图片

阅读数 2

HTML5图片拖拽

阅读数 535

HTML5之拖动图片

阅读数 34

HTML5图片在线预览

阅读数 1195

HTML5图片预览

博文 来自: qq_29606255

html5图片懒加载

阅读数 31

http://www.178.com/s/js/jquery.lazyload.min.js

博文 来自: weixin_34192732
没有更多推荐了,返回首页