Animation 2 minor updates.

master
Ben Burlingham 8 years ago
parent 628f1a3e24
commit e4bd773eb3
  1. 4
      css/index.scss
  2. 3
      css/style.css
  3. 2
      js/animation2.js
  4. 2
      js/bundle.js

@ -1,8 +1,8 @@
.particles {
background: #fafafa;
background: #ddd;
// background: url('../res/seigaiha.svg');
background-size: 100px 50px;
border-radius: 50px;
// border-radius: 50px;
height: 600px;
margin: 10px auto;
position: relative;

@ -1,7 +1,6 @@
.particles {
background: #fafafa;
background: #ddd;
background-size: 100px 50px;
border-radius: 50px;
height: 600px;
margin: 10px auto;
position: relative;

@ -79,7 +79,7 @@ function flee([evt, store]) {
};
function randomMoveVector() {
const speed = 5;
const speed = 10;
let dx = Math.round(Math.random() * speed);
let dy = Math.pow(Math.pow(speed, 2) - Math.pow(dx, 2), 0.5);

@ -6186,7 +6186,7 @@ function flee(_ref3) {
};
function randomMoveVector() {
var speed = 5;
var speed = 10;
var dx = Math.round(Math.random() * speed);
var dy = Math.pow(Math.pow(speed, 2) - Math.pow(dx, 2), 0.5);

Loading…
Cancel
Save