JS文字球状放大效果代码分享_javascript技巧_脚本之家金沙网址

JS文字球状放大效果代码分享_javascript技巧_脚本之家金沙网址。很酷的放大镜放大文字的效果,超赞!

金沙网址,大家先运行代码试一试————————————-效果演示——————————————-

JS文字球状放大效果 body {cursor:crosshair;margin:0; padding:0; position:absolute; overflow:hidden; background:#000; left:0; top:0; width:100%; height:100%;} span {position:absolute;font-family: verdana; font-weight: bold;}<!--T = "What is real?How do you define real? Ifyou're talkingabout what youcan feel whatyou can smellwhat you cantaste and seethen real issimply electrical signalsinterpreted byyour brain! ";I = 0;o = new Array();xm = -1000;ym = -1000;///////////////rad = 80;dim = 200;///////////////W = 0;H = 0;NX = 14;NY = 14;var nx;var ny;document.onmousemove = function e = window.event; xm =  -  + dim * .5; ym =  -  + dim * .5;}function resize() { nx = document.body.offsetWidth; ny = document.body.offsetHeight;}onresize = resize;function CObj{ this.obj = document.createElement; this.obj.innerHTML = c; DOOT.appendChild; this.N = N; this.To = 16; this.x0 = i*2*W; this.y0 = j*2*H; this.anim = true; this.mainloop = function { dx = xm - x0; dy = ym - y0; dist = Math.sqrt; if  { anim = true; M = Math.cos(.5 * Math.PI * Math.abs; c = Math.round; with{ left = x0 - dx * M; top = y0 - dy * M; zIndex = Math.round; fontSize = 8 + M * W * 2; color = "RGB"; } } else { if{ with{ left = x0; top = y0; zIndex = 0; fontSize = 8; color = "RGB"; } anim = false; } } } }}function runo[i].mainloop;}onload = function (){ DOOT = document.getElementById; with{ left = -dim/2; top = -dim/2; width = dim; height = dim; } resize / 2; H =  / 2; K = 0; for{ for{ c=T.charAt.toUpperCasec="·"; o[K] = new CObj;}//--> 

小伙伴们想不想实现这种酷炫的效果,直接复制代码,运行即可,抓紧试试吧,或者是再来点创新。

以上就是为大家分享的JavaScript文字球状放大效果代码,希望大家可以喜欢。

发表评论

电子邮件地址不会被公开。 必填项已用*标注