Merge pull request #8 from vadimkorr/feature/#2_Remove-transition
Feature/#2 Remove transition
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
import { cubicIn } from 'svelte/easing';
|
|
||||||
|
|
||||||
export function custom(node, { duration, offset }) {
|
|
||||||
console.log(node.style.left)
|
|
||||||
return {
|
|
||||||
duration,
|
|
||||||
css: t => {
|
|
||||||
const eased = cubicIn(t);
|
|
||||||
// console.log(Math.round(offset/t))
|
|
||||||
// transform: translate(${Math.round(offset/t)}px);
|
|
||||||
return `
|
|
||||||
transform: translate(${Math.round(offset/t)}px);
|
|
||||||
`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user