htm5+css3+js的动画效果

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>圣诞主题</title>
    <link rel=‘stylesheet‘ href=‘http://img.mukewang.com/down/566a38a90001f17d00000000.css‘ />
    <script type="text/javascript" src="http://img.mukewang.com/down/566a38f000016f0900000000.js"></script>
</head>

<body>
    <section class="container">
        <!-- 第一幅画面 -->
        <section class="page-a bg-adaptive">
            <!-- 男孩 -->
            <div class="chs-boy chs-boy-deer"></div>
            <!-- 月亮 -->
            <div class="moon"></div>
            <!-- 云 -->
            <div class="cloudy"></div>
            <!-- 圣诞树 -->
            <figure class="tree"></figure>
            <!-- 星星 -->
            <svg viewBox="0 0 512 486">
                <defs>
                    <linearGradient id="star" x1="0%" y1="0%" x2="100%" y2="0%">
                        <stop offset="0%" stop-color="#FCF0BC"></stop>
                        <stop offset="0%" stop-color="#FCF0BC"></stop>
                    </linearGradient>
                </defs>
                <polygon style="fill: url(#star);" points="256.814,12.705 317.205,198.566 512.631,198.566 354.529,313.435 414.918,499.295 256.814,384.427 98.713,499.295 159.102,313.435 1,198.566 196.426,198.566 "></polygon>
            </svg>
            <!-- 窗户 -->
            <div class="window wood">
                <div class="window-bg"></div>
                <div class="window-content">
                    <div class="window-left"></div>
                    <div class="window-right"></div>
                </div>
            </div>
        </section>
        <!-- 第二幅画面 -->
        <section class="page-b bg-adaptive">
            <!-- 猫 -->
            <figure class="cat"></figure>
            <!-- 小女孩 -->
            <figure class="girl"></figure>
            <!-- 圣诞男孩 -->
            <figure class="christmas-boy-head"></figure>
            <figure class="christmas-boy boy-walk"> </figure>
            <!-- 旋转木马 -->
            <div id="carousel">
                <figure id="spinner"></figure>
            </div>
        </section>
        <!-- 第三幅画面 -->
        <section class="page-c bg-adaptive">
            <!-- 月亮 -->
            <div class="moon"></div>
            <!-- 云 -->
            <div class="cloudy"></div>

            <!-- 星星 -->
            <svg viewBox="0 0 512 486">
                <defs>
                    <linearGradient id="star" x1="0%" y1="0%" x2="100%" y2="0%">
                        <stop offset="0%" stop-color="#FCF0BC"></stop>
                        <stop offset="0%" stop-color="#FCF0BC"></stop>
                    </linearGradient>
                </defs>
                <polygon style="fill: url(#star);" points="256.814,12.705 317.205,198.566 512.631,198.566 354.529,313.435 414.918,499.295 256.814,384.427 98.713,499.295 159.102,313.435 1,198.566 196.426,198.566 "></polygon>
            </svg>

            <!-- 圣诞树 -->
            <figure class="tree treefix"></figure>
            <!-- 鹿 -->
            <figure class="deer"></figure>
            <!-- 窗户关闭 -->
            <div class="window wood">
                <!-- <div class="window-bg"></div> -->
                <div class="window-content" data-attr="red">
                    <div class="window-scene-bg"></div>
                    <div class="window-close-bg"></div>
                    <div class="window-left hover"></div>
                    <div class="window-right hover"></div>
                </div>
            </div>
            <!-- 雪花 -->
            <canvas id="snowflake" style="position:absolute;z-index:999;"></canvas>
        </section>
    </section>
</body>

</html>

  

<!DOCTYPE html><html>
<head>    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />    <title>圣诞主题</title>    <link rel=‘stylesheet‘ href=‘http://img.mukewang.com/down/566a38a90001f17d00000000.css‘ />    <script type="text/javascript" src="http://img.mukewang.com/down/566a38f000016f0900000000.js"></script></head>
<body>    <section class="container">        <!-- 第一幅画面 -->        <section class="page-a bg-adaptive">            <!-- 男孩 -->            <div class="chs-boy chs-boy-deer"></div>            <!-- 月亮 -->            <div class="moon"></div>            <!-- 云 -->            <div class="cloudy"></div>            <!-- 圣诞树 -->            <figure class="tree"></figure>            <!-- 星星 -->            <svg viewBox="0 0 512 486">                <defs>                    <linearGradient id="star" x1="0%" y1="0%" x2="100%" y2="0%">                        <stop offset="0%" stop-color="#FCF0BC"></stop>                        <stop offset="0%" stop-color="#FCF0BC"></stop>                    </linearGradient>                </defs>                <polygon style="fill: url(#star);" points="256.814,12.705 317.205,198.566 512.631,198.566 354.529,313.435 414.918,499.295 256.814,384.427 98.713,499.295 159.102,313.435 1,198.566 196.426,198.566 "></polygon>            </svg>            <!-- 窗户 -->            <div class="window wood">                <div class="window-bg"></div>                <div class="window-content">                    <div class="window-left"></div>                    <div class="window-right"></div>                </div>            </div>        </section>        <!-- 第二幅画面 -->        <section class="page-b bg-adaptive">            <!-- 猫 -->            <figure class="cat"></figure>            <!-- 小女孩 -->            <figure class="girl"></figure>            <!-- 圣诞男孩 -->            <figure class="christmas-boy-head"></figure>            <figure class="christmas-boy boy-walk"> </figure>            <!-- 旋转木马 -->            <div id="carousel">                <figure id="spinner"></figure>            </div>        </section>        <!-- 第三幅画面 -->        <section class="page-c bg-adaptive">            <!-- 月亮 -->            <div class="moon"></div>            <!-- 云 -->            <div class="cloudy"></div>
            <!-- 星星 -->            <svg viewBox="0 0 512 486">                <defs>                    <linearGradient id="star" x1="0%" y1="0%" x2="100%" y2="0%">                        <stop offset="0%" stop-color="#FCF0BC"></stop>                        <stop offset="0%" stop-color="#FCF0BC"></stop>                    </linearGradient>                </defs>                <polygon style="fill: url(#star);" points="256.814,12.705 317.205,198.566 512.631,198.566 354.529,313.435 414.918,499.295 256.814,384.427 98.713,499.295 159.102,313.435 1,198.566 196.426,198.566 "></polygon>            </svg>
            <!-- 圣诞树 -->            <figure class="tree treefix"></figure>            <!-- 鹿 -->            <figure class="deer"></figure>            <!-- 窗户关闭 -->            <div class="window wood">                <!-- <div class="window-bg"></div> -->                <div class="window-content" data-attr="red">                    <div class="window-scene-bg"></div>                    <div class="window-close-bg"></div>                    <div class="window-left hover"></div>                    <div class="window-right hover"></div>                </div>            </div>            <!-- 雪花 -->            <canvas id="snowflake" style="position:absolute;z-index:999;"></canvas>        </section>    </section></body>
</html>

时间: 2024-08-03 12:12:31

htm5+css3+js的动画效果的相关文章

css3控制多重动画效果

今天看到一个类似于门窗开关效果.想着用css3实现,当然js是可以必须能够实现的.我主要想体验一把css3的神奇. 0102 01图片缩小,缩小到看不到之后,出现02图片放大的效果. 实现原理:用一个外层div来触发hover效果,里面套两个图片div, 分别为图一和图二 主要使用css3的transform和transition效果,而且比较重点的是transition-delay延时属性. 具体代码 html-------------------------- <div id="out

3D Grid Effect – 使用 CSS3 制作网格动画效果

今天我们想与大家分享一个小的动画概念.这个梦幻般的效果是在马库斯·埃克特的原型应用程序里发现的??.实现的基本思路是对网格项目进行 3D 旋转,扩展成全屏,并呈现内容.我们试图模仿应用程序的行为,因此创建了两个演示,分别演示垂直和水平旋转网格项. 温馨提示:为保证最佳的效果,请在 IE10+.Chrome.Firefox 和 Safari 等现代浏览器中浏览. 您可能感兴趣的相关文章 创意无限!一组网页边栏过渡动画[附源码下载] 真是好东西!13种非常动感的页面加载动画效果 你见过吗?9款超炫的

CSS3中的动画效果记录

今天要记录的是CSS3中的三种属性transform.transition以及animation,这三个属性大大提升了css处理动画的能力. 一.Transform 变形 CSS中transform 属性允许你修改CSS可视化模型的坐标控件.使用transform,元素可以安装设定的值变形.旋转.缩放.倾斜. 语法: transform : none | <transform-function> [ <transform-function> ]* 也就是: transform: r

酷炫的css3图标loading动画效果代码

css3 svg图标制作环形loading加载动画特效 绿色的css3动画加载图标代码 css3加载动画制作loading加载Android动画效果 jQuery css3预加载动画制作css3动画图标页面加载效果 css3加载动画特效制作css3 win8加载动画特效 css3加载动画效果制作loading动画效果代码 8种超炫css3加载动画代码_css3 loading动画效果代码 5个CSS3加载动画_css3网页加载动画图标下载 css3 Loading加载动画制作动态Loading阶

jquery使用CSS3实现文字动画效果插件Textillate.js

Textillate是一款基于jquery的使用CSS3实现文字动画的小巧插件.Textillate.js集成了一些很棒的使用CSS3动画效果的 JavaScript 库,您可非常轻轻松地把这些动画效果应该于网页中的任何文字. Textillate 下载        案例演示 使用方法 引入核心文件 <link href="assets/animate.css" rel="stylesheet"> <script src="http:/

强大的CSS3/JS:帧动画的多种实现方式与性能对比

Web动画形式 首先我们来了解一下Web有哪些动画形式 1\. CSS3动画 Transform(变形) Transition(过渡) Animation(动画) 2\. JS动画(操作DOM.修改CSS属性值) 3\. Canvas动画 4\. SVG动画 5\. 以Three.js为首的3D动画 以上各种动画形式都可以制作出一种类型的动画,那就是帧动画,也叫序列帧动画,定格动画,逐帧动画等,这里我们统一用帧动画来表述. 这里推荐一下我的前端学习交流扣qun:767273102 ,里面都是学习

JS DOM编程艺术——用JS实现动画效果—— JS学习笔记2015-7-21(第88天)

moveElement函数 <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>用定时器实现JS动画效果</title> <style> </style> </head> <body> <

tween.js的动画效果

实现动画可以用好多种的方法,今天来看看用tween.js插件是如何实现动画效果的.  tween.js的使用 1.下载 2.引入 3.使用tween.js语法 需要哪些条件来做运动 1.初始位置 2.目标点 缓动函数 1.linear 匀速 2.Quad 二次方缓动效果 3.Cubic 三次方缓动效果 4.Quart 四次方缓动效果 5.Quint 五次方缓动效果 6.Sine  正弦缓动效果 7.Expo  指数缓动效果 8.Circ  圆形缓动函数 9.Elastic 指数衰减正弦曲线缓动函

JavaScript之JS实现动画效果

在前面的随笔中介绍了如何用DOM技术修改文档的央样式信息,用JavaScript添加样式信息可以节约我们的时间和精力,但总的来说,CSS仍是完成这类任务的最佳工具.但是有一个应用领域是目前的CSS无能为力的.如果我们想随着时间的变化而不断改变某个元素的样式,则只能用JavaScript.JavaScript能够按照预定的时间间隔重复的调用一个函数,而意味着我们可以随着时间的推移而不断改变某个元素的样式. 动画是样式随着时间变化的完美例子之一.简单的说,动画就是让元素的位置随着时间而不断的发生变化