Toggle navigation
Sign Up
Log In
Explore
Works
Folders
Tools
Collections
Artists
Groups
Groups
Topics
Tasks
Tasks
Jobs
Teams
Jobs
Recommendation
More Effects...
JS
window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 1000 / 60); }; })(); var canvas = document.getElementsByTagName("canvas")[0]; var ctx = canvas.getContext("2d"); var w = window.innerWidth, h = window.outerHeight; canvas.width = w; canvas.height = h; var bg_particle_no = 180; var particles = []; function init(){ reset_scene(); for(var i=0;i
w || p.x < 0){ p.sx = -p.sx; } p.y += p.sy; if(p.y > h || p.y < 0){ p.sy = -p.sy; } p.draw(); } } function bg_particle(){ this.x = Math.random()*w; this.y = Math.random()*h; this.sx = Math.random()*2; this.sy = Math.random()*2; var min = 10; var max = 40; this.r = Math.random()*(max - min); this.draw = function(){ ctx.fillStyle="#52CA70"; ctx.beginPath(); ctx.arc(this.x,this.y,this.r, 0, Math.PI*2, false); ctx.fill(); } } function animloop() { drawscene(); requestAnimFrame(animloop); } init(); animloop();
CSS
body{ margin: 0; padding: 0; overflow: hidden; background: #03244B; } canvas{ position: absolute; top: 0; right: 0; -webkit-filter: blur(15px); filter: url('#blur'); /*Firefox Support for Blur*/ filter: blur(15px); }
HTML
Join Effecthub.com
Working with Global Gaming Artists and Developers!
Login
Sign Up
Or Login with Your Email Address:
Email
Password
Remember
Or Sign Up with Your Email Address:
Your Email
This field must contain a valid email
Set Password
Password should be at least 1 character
Stay informed via email