File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Visualize various IPv4 related info
77
88<script lang =" ts" >
99 import { newAddressFrom } from ' @lib/ipv4' ;
10+ import { fade } from ' svelte/transition' ;
1011 import PartialTransition from ' ./PartialTransition.svelte' ;
1112
1213 export let length = 32 ;
@@ -102,11 +103,14 @@ Visualize various IPv4 related info
102103 </div >
103104 <div class =" h-2 w-full flex bg-gray-100" >
104105 <div class ="h-full" style:width ={` ${startInPercent }% ` } />
105- <div
106- class =" h-full bg-cyan rounded"
107- style:width ={` ${sizeInPercentWithMin }% ` }
108- style:--un-bg-opacity ={` ${opacityInPercent }% ` }
109- />
106+ {#key network }
107+ <div
108+ in:fade
109+ class =" h-full bg-cyan rounded"
110+ style:width ={` ${sizeInPercentWithMin }% ` }
111+ style:--un-bg-opacity ={` ${opacityInPercent }% ` }
112+ />
113+ {/ key }
110114 <div class =" h-full grow" />
111115 </div >
112116 <!-- detail -->
@@ -163,10 +167,13 @@ Visualize various IPv4 related info
163167 style:--un-bg-opacity ={` ${opacityForDetailInPercent }% ` }
164168 >
165169 <div class ="h-full" style:width ={` ${beforeIP }% ` } />
166- <div
167- class =" mix-blend-hard-light h-full bg-lime-900 rounded"
168- style:width ={` ${relativeIPSizeWithMin }% ` }
169- />
170+ {#key address }
171+ <div
172+ in:fade
173+ class =" mix-blend-hard-light h-full bg-lime-900 rounded"
174+ style:width ={` ${relativeIPSizeWithMin }% ` }
175+ />
176+ {/ key }
170177 <div class =" h-full grow" />
171178 </div >
172179 <div >
You can’t perform that action at this time.
0 commit comments