10个让人眼花缭乱的 HTML5 和 JavaScript 效果

作为下一代网页语言,HTML5 拥有很多让人期待已久的新特性。如今,很多 Web 开发人员开始使用 HTML5 来制作各种丰富的 Web 应用。本文向大家展示10个让人眼花缭乱的 HTML5 和 JavaScript 效果,让你体验下一代 Web 技术的魅力,相信你看完这些例子后会对未来的 Web 发展充满无限期待。
[u][color=red][url=http://mudcu.be/labs/JS1k/BreathingGalaxies.html]Breathing Galaxies[/url][/color][/u] <-----点击查看
[img]http://dl.iteye.com/upload/attachment/508014/8902122b-7c9b-3d9b-9a98-2361ac8bcc25.jpg[/img]


动态变换颜色和直径,可通过键盘或者鼠标产生新的形状,这个效果很炫很炫!
[u][color=red][url=http://www.openrise.com/lab/FlowerPower]FlowerPower[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508003/e2b71304-22c3-32d6-90e0-416e92096313.jpg[/img]


灵感来自大自然的使用,使用花朵作为画刷,以贝兹曲线方式绘图。
[u][color=red][url=http://www.airtightinteractive.com/demos/processing_js/noisefield08.html]Noise Field[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508584/dc778ffe-c2a1-3603-a98a-0f2d600f9a00.jpg[/img]


移动鼠标可改变粒子的运动,点击可随机生成不同的粒子效果。
[u][color=red][url=http://hakim.se/experiments/html5/keylight/03/]Keylight[/url][/color][/u]<----点击查看
[img]http://dl.iteye.com/upload/attachment/508586/83d65752-20c1-370a-9a62-2acf3c98854b.jpg[/img]


双击生成两个以后的键即可发出声音,移动键的位置可产生不同的声音效果。
[u][color=red][url=http://acko.net/dumpx/996b.html]Swirling Tentacles[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508588/d92ec18b-8215-303a-b093-9c16e987e594.jpg[/img]


三维脉冲效果,沿着脉冲线有运动的颜色渐变模块。
[u][color=red][url=http://hakim.se/experiments/html5/blob/03/]Blob[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508590/fb59a7c8-2205-3457-9205-6a0611373817.jpg[/img]


拖动水滴有重力效果,双击可以分离,小水滴碰到大水滴会合并。
[u][color=red][url=http://homepage.mac.com/chriswjohnson/automatons/rotating-spiral-1.svg]Rotating Spiral[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508593/9b900a6d-8fc2-3fbe-8601-5d82bb92e7fc.jpg[/img]


旋转的螺旋效果,看得有点头晕,单击可以控制开始和停止旋转。
[u][color=red][url=http://hakim.se/experiments/html5/magnetic/02/]Magnetic[/url][/color][/u]<----点击查看
[img]http://dl.iteye.com/upload/attachment/508595/c29a3cb8-860b-34fb-93b0-0f2f395b3206.jpg[/img]


模拟磁性粒子流效果,非常逼真。
[u][color=red][url=http://hakim.se/experiments/html5/trail/03/]Trail[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508597/70d3d2f9-1bd7-3031-b507-9a6fb3362e34.jpg[/img]


彩色颗粒跟随鼠标运动效果,带尾巴淡出效果。
[u][color=red][url=http://canvas-test.appspot.com/]Graph Layout[/url][/color][/u] <----点击查看
[img]http://dl.iteye.com/upload/attachment/508599/cd875478-4481-3af1-bd50-e62ea4556dab.jpg[/img]


一种交互的力向图布局效果。

(国际来源:Queness 编译来源:梦想天空-专注Web开发技术和资源分享)

:arrow:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
c++写题目描述 小 � A 是一个美食爱好者。市里新开了一家美食街,这当然是小 � A 不能错过的盛宴啦。 美食街是一条笔直的直线,在街道的不同的点上,有着不同种类的美食,第 � i 个美食店的位置为 � � x i ​ ,美食品种编号为 � � p i ​ 。 这么多种美食让小 � A 眼花缭乱,小 � A 想要品尝所有品种的美食,又想走最少的路。 请编程帮助小 � A 计算,他品尝所有品种的美食,要走的最短路程有多长? 输入 第 1 1 行有一个整数 � N ,表示街道上美食店的总数量; 接下来 � N 行,每行有 2 2 个整数 � � x i ​ 和 � � p i ​ ,分别代表了不同美食店的位置,以及这个美食店的美食品种。 测试数据保证同一个位置 � � x i ​ ,只会开一家美食店。 输出 输出一个整数,代表小 � A 要走的最短路程; 路程的计算方式为:如果从 � � x i ​ 点到 � � x j ​ ( � � ≤ � � x i ​ ≤x j ​ )包含了所有品种的美食,那么路程长度 = � � − � � =x j ​ −x i ​ 。 样例 输入复制 7 2 2 1 3 5 2 4 1 6 3 10 2 8 1 输出复制 2 说明 【样例解释】 样例中 � � x i ​ 可选取区间 [ 4 , 6 ] [4,6],可以包含所有的美食品种。 【数据范围】 对于 20 % 20% 的数据, 10 ≤ � ≤ 20 10≤n≤20; 对于另外 40 % 40% 的数据, 10 ≤ � ≤ 1000 10≤n≤1000; 对于 100 % 100% 的数据, 1 ≤ � ≤ 50000 1≤n≤50000, 1 ≤ � � , � � ≤ 1 0 9 1≤x i ​ ,p i ​ ≤10 9 ;
07-20

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值