diff --git a/Readme.md b/Readme.md index 436748e..436fcaa 100644 --- a/Readme.md +++ b/Readme.md @@ -1278,39 +1278,6 @@ const router = $.router([ ``` -#### Route Transitions - -```typescript -import { $, html } from 'sigpro'; - -const router = $.router([ - { - path: '/', - component: () => html`
Home
` - }, - { - path: '/about', - component: () => html`
About
` - } -]); - -// Add transitions -$.effect(() => { - const currentPath = router.getCurrentPath(); - const pages = document.querySelectorAll('.page'); - - pages.forEach(page => { - page.style.opacity = '0'; - page.style.transition = 'opacity 0.3s'; - - setTimeout(() => { - page.style.opacity = '1'; - }, 50); - }); -}); -``` - -