2018,2月,14日,和春节一前一后的情人节快要来了,IT 界的程序员你们想要度过这个美好的节日呢?你想用什么特别的方式对你爱的人表白呢?
我们程序员是有情怀,懂浪漫的,富有理想主义的一个族群,智商超越常人,当人表白的方式也是普通人难以学习的。
曾经,有一份真诚的爱情放在我面前, 我没有珍惜,
等到我失去的时候才后悔莫及,
人世间最痛苦的事莫过于此……
如果上天能够给我一个再来一次的机会,
我会对那个女孩子说三个字:
“我爱你。”
如果非要在这份爱上加上一个期限,
我希望是……一万年!
1、送上一朵绝对炫酷的红玫瑰
这个是西班牙程序员 Roman Cortes 在 2 月 14 日使用纯 java script 脚本编写的神奇 3D 红色玫瑰花,用代码做出的玫瑰花,这才是做程序员的送给女朋友最好的情人节礼物呢!相比外面的玫瑰花,它更长久,更灿烂,更重要的是普通人根本不会!你们能做到么?
效果图:
代码如下:
2、jQuery+HTML5烂漫爱心表白动画
jQuery+HTML5烂漫爱心表白动画是一款jQuery HTML5 Canvas电子版的爱心表白动画,效果相当不错,很有创意,很适合进行表白。
29行,30行修改时间,6行修改昵称。
主要代码:
<span class="comments">/**</span><br />
<span class="space"/><span class="comments">*2018—02-14,</span><br />
<span class="space"/><span class="comments">*2018-02-28.</span><br />
<span class="space"/><span class="comments">*/</span><br />
Boy name = <span class="keyword">Mr</span> Yu<br />
Girl name = <span class="keyword">Mrs</span> Xi<br />
<span class="comments">// Fall in love river. </span><br />
The boy love the girl;<br />
<span class="comments">// They love each other.</span><br />
The girl loved the boy;<br />
<span class="comments">// AS time goes on.</span><br />
The boy can not be separated the girl;<br />
<span class="comments">// At the same time.</span><br />
The girl can not be separated the boy;<br />
<span class="comments">// Both wind and snow all over the sky.</span><br />
<span class="comments">// Whether on foot or 5 kilometers.</span><br />
<span class="keyword">The boy</span> very <span class="keyword">happy</span>;<br />
<span class="keyword">The girl</span> is also very <span class="keyword">happy</span>;<br />
<span class="placeholder"/><span class="comments">// Whether it is right now</span><br />
<span class="placeholder"/><span class="comments">// Still in the distant future.</span><br />
<span class="placeholder"/>The boy has but one dream;<br />
<span class="comments">// The boy wants the girl could well have been happy.</span><br />
<br>
<br>
I want to say:<br />
Baby, I love you forever;<br />
效果图:
3、jQuery+CSS3情人节爱心特效
这是一款基于jQuery+CSS3实现的情人节悬挂摆动爱心动画特效源码。画面中心的心形图案呈现出时钟摆动的动画效果,同时图案中与背景上都会有小的心形动画浮动显示与隐藏的视觉效果。由于使用了部分CSS3技术,建议使用支持HTML5与css3效果较好的火狐(Firefox)或谷歌(Chrome)浏览器预览本源码。
部分JS代码:
var shakes = {
MAX_PARTICLES: 500,
poo