
1 pagecho Jun 21, 2014 最后的那个模糊效果好厉害啊!有教程么? |
2 JoyNeop Jun 21, 2014 卧槽这域名炸了 |
3 Livid MOD PRO Server not found. |
5 wzxjohn Jun 21, 2014 git上国内访问慢很正常啊。。。没啥好奇怪的=。= |
7 Geeker Jun 21, 2014 我手抖按了下 Tab 键 。。 |
8 paloalto Jun 21, 2014 @pagecho lz 用的是 canvas 实现模糊。 var CanvasImage = function(a, b) { this.element = a, this.image = b, this.element.width = this.image.width, this.element.height = this.image.height, this.cOntext= this.element.getContext("2d"), this.context.drawImage(this.image, 0, 0) }; CanvasImage.prototype.blur = function(a) { this.context.globalAlpha = .5; for (var b = -a; a >= b; b += 2) for (var c = -a; a >= c; c += 2) this.context.drawImage(this.element, c, b), c >= 0 && b >= 0 && this.context.drawImage(this.element, -(c - 1), -(b - 1)); this.context.globalAlpha = 1 }, |
9 paloalto Jun 21, 2014 @pagecho 嫌麻烦的话,可以试试这个: https://github.com/jakiestfu/Blur.js blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements. |
10 mortal Jun 21, 2014 牛啊。。。 |
12 guoqiao Jun 21, 2014 via iPhone 能不能把错别字改下,强迫症的表示难受… |
13 P233 Jun 21, 2014 @paloalto 补充 SVG Filter <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> <filter id="blur"> <feGaussianBlur stdDeviation="7" /> </filter> </svg> #div { filter:url(#blur) } 上一句在 Firefox 中需要写成 inline style, 写进 CSS 文件中无效,搜了下没人提过,也知道为什么 |
15 jdqingm Jun 21, 2014 via iPhone 好帅气… |
16 wintr Jun 21, 2014 最后 DESIGN 拼错了 |
17 taobeier Jun 21, 2014 很漂亮! |
22 wensonsmith Jun 21, 2014 图片模糊能详细说明一下吗?? 没找到源码 |
24 coraline OP @wensonsmith 这个是canvas生成模糊image的方法: var CanvasImage = function(ele,img) { this.element = ele; this.image = img; this.element.width = this.image.width; this.element.height = this.image.height; this.cOntext= this.element.getContext("2d"); this.context.drawImage(this.image,0,0) }; CanvasImage.prototype.blur = function(i) { this.context.globalAlpha = 0.5; for (var y = -i; y <= i; y += 2) { for (var x = -i; x <= i; x += 2) { this.context.drawImage(this.element, x, y) if (x >= 0 && y >= 0) { this.context.drawImage(this.element, -(x-1), -(y-1)) } } } this.context.globalAlpha = 1 }; 其实就是双层图片模拟的,上层是canvas,下层是原来image |
25 hustlzp Jun 21, 2014 楼主好强大! |
26 cxshun Jun 22, 2014 好帅气 |
27 zola Jun 22, 2014 请教鼠标点击出现小圈的效果是叫什么名字? |
28 wensonsmith Jun 22, 2014 @coraline 调用的话是这样么? 我怎么成功不了啊你能在http://jsfiddle.net/ 上写一个demo么? var cImg = CanvasImage(document.getElementById('blur'),document.getElementById('img')); cImg.blur(2); |
29 wensonsmith Jun 22, 2014 |
31 wensonsmith Jun 22, 2014 楼主,图片尺寸如果超出窗口宽度,比如 一张1440 的图,我可以用 width = “100%” 来缩小至重口大小,但是canvas 里面绘制的是原图的大小,怎样处理的呢? PS: 你给的源码里面的js都是压缩过的。。。看哭了啊! |
32 shyrz Jun 22, 2014 楼主流弊,给你点赞!(/ w \ ) |
33 shyrz Jun 22, 2014 看了下素锦阅读,我知道你是谁了 |
34 coraline OP @zola https://github.com/LoeiFy/loeify.github.com/blob/master/assets/module/js/tapPlot.js @wensonsmith 请看Github里面assets目录源码,不要看dist里面的 |
35 ychongsaytc Jun 22, 2014 支持 Retina Display 就更棒了 |
36 h2sky Jun 22, 2014 觉得不算是博客吧,更像幻灯片演示 --_--!@ |
37 g0thic Jun 22, 2014 酷炫。。。http://guo.lu/这个站也不错 |
38 xunxun Jun 22, 2014 我看到了。。。简书。。 |
41 imSam Jun 24, 2014 帅气,若是兼容RETINA,必然爆了。 |
42 goldenlove Jul 2, 2014 挺赞的... 喜欢那个大括号的loading ... |
43 lisposter Jul 2, 2014 域名好好看 赞 |
44 JoyNeop Jul 2, 2014 占用了 Safari 的手势,无法正确地 show the previous page |
45 hellov22ex Jul 2, 2014 很漂亮 |
46 ansenlee Jul 2, 2014 这体验好没逻辑啊。。 |
47 TimLang Jul 2, 2014 从lz的网站找到个很有意思的js插件:Isotope,不过不开源。。 |
48 coraline OP |
49 ytf4425 Jul 3, 2014 警告 尊敬的用户,您好! 您访问的网站或页面因如下原因而暂时禁止访问: 1、网站未备案,按照国家相关法律法规,该网站被临时屏蔽! 2、网站主机上绑定多个未备案域名。 3、网站页面内含有敏感或有害信息,如涉黄、赌、毒等内容。 4、将备案号/经营许可号显示在网站首页的醒目位置,如当地电管局另有要求则以当地电管局要求为准。 |
50 iam36 Jul 3, 2014 锅炉你好! :P |
51 yangkeao Jul 4, 2014 我一直想知道这个滑动是怎么做的。 监听的什么事件?能够做到跨平台 |
53 bydgd Sep 17, 2015 就是 canvas 模糊效果的代码 |
54 bydgd Sep 17, 2015 脑抽了说的不一个,,无视我 |