|
|
@ -2,14 +2,10 @@
|
|
|
|
import { linear } from './easing.js';
|
|
|
|
import { linear } from './easing.js';
|
|
|
|
export let things;
|
|
|
|
export let things;
|
|
|
|
|
|
|
|
|
|
|
|
let bar = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function flip(node, animation, params) {
|
|
|
|
function flip(node, animation, params) {
|
|
|
|
const dx = animation.from.left - animation.to.left;
|
|
|
|
const dx = animation.from.left - animation.to.left;
|
|
|
|
const dy = animation.from.top - animation.to.top;
|
|
|
|
const dy = animation.from.top - animation.to.top;
|
|
|
|
|
|
|
|
|
|
|
|
bar += 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
duration: 100,
|
|
|
|
duration: 100,
|
|
|
|
easing: linear,
|
|
|
|
easing: linear,
|
|
|
|