Thursday, 8 December 2016

(Year 3 Sem C) Week 4 Prototype Preparation (Part 4)

Since I already have a domain name, I decided to upload the website to the domain by using FileZilla.










FileZilla is a cross- platform free FTP application which consisting Client and Server.This application is available for Windows, Linux, and Mac OS. The client supports for FTP, SFTP, and FTPS.




























I started to type in my domain information in the site manager.Then, the file started to transfer from the server to the website.

After the file is completed transfer to the website, I decided to animate the particles by using tween js. I try to apply the coding from below:

function movetoleft(){
//var testing = document.getElementById("testing");
var tween = new TWEEN.Tween({x: 0, y:0, rotation :0})
.to ({x:400,y:0, rotation:90},2000)
.onUpdate ( 

function (){
sphere.style.left = this.x +"px";
}).start ();
}
function animate (){
requestAnimationFrame(animate);
TWEEN.update();
}

But, the particles will not move to left and just stay there.

No comments:

Post a Comment