mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-23 15:01:27 +00:00
basic page transitions between /blog and /blog/[slug]
This commit is contained in:
12
routes/blog/_transitions.js
Normal file
12
routes/blog/_transitions.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import move from './_move.js';
|
||||
|
||||
const { send, receive } = move({
|
||||
fallback(node) {
|
||||
return {
|
||||
duration: 0,
|
||||
css: t => `opacity: ${t}`
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
export { send, receive };
|
||||
Reference in New Issue
Block a user