Skip to content

Instantly share code, notes, and snippets.

View antonkartashov's full-sized avatar

Anton Kartashov antonkartashov

  • Orenburg, Russia
View GitHub Profile
duration = 0
speed = 25
distance = 300
getDuration = ->
duration = speed / distance
getDuration()
square.center()
square.states.next()
two =
scale: 2.5
rotation: 225
three =
scale: 0.5
blur: 25
borderRadius: 250
square.states.add second: two, third: three
square.states.add
second:
scale: 1.5
rotation: 225
third:
scale: 0.5
blur: 25
borderRadius: 250
square.on Events.Click, ->
square.states.next()
var press = function() {
button.textContent = "Pressed!";
};
button.addEventListener("click", press);
button.addEventListener("click", function() {
button.textContent = "Pressed!";
});
->
square.states.next()
function() {
square.states.next();
}
square.states.add
second: scale: 1.5, rotation: 225
third: scale: 0.5, blur: 25, borderRadius: 250