From 2fd4362354b9ce31f7ed3320c833d46742ca0431 Mon Sep 17 00:00:00 2001 From: Natxo <1172351+natxocc@users.noreply.github.com> Date: Mon, 16 Mar 2026 11:42:23 +0100 Subject: [PATCH] Update Readme.md --- Readme.md | 33 --------------------------------- 1 file changed, 33 deletions(-) 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); - }); -}); -``` - -