Skip to content

Commit d4817ee

Browse files
committed
Add transition effect on network on IPv4Network
1 parent 6869a44 commit d4817ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/blend/IPv4Network.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ to augment IPv4 with Network and Netmask visualization
77
import Bits from '../parts/Bits.svelte';
88
import { getBaseLog } from '@lib/math';
99
import { newAddressFrom } from '@lib/ipv4';
10+
import PartialTransition from '@components/parts/PartialTransition.svelte';
1011
export let length = 32;
1112
export let address = 0xffffffff;
1213
export let prefix = 0xffffffff;
@@ -92,7 +93,10 @@ to augment IPv4 with Network and Netmask visualization
9293
disabledBits={~mask >>> 0}
9394
/>
9495
<small class="mx-2 text-gray-600 absolute mt-0.6">
95-
<pre class="text-gray-400 inline-block">IP & Netmask = </pre>
96-
<pre class="inline-block text-cyan">Network: {renderedNetwork}</pre>
96+
<pre class="text-gray-400 inline-block lt-xs:hidden">IP & Netmask = </pre>
97+
<pre class="inline-block text-cyan">Network:</pre>
98+
<div class="inline-block text-cyan">
99+
<PartialTransition notation={renderedNetwork} />
100+
</div>
97101
</small>
98102
<small class="opacity-0">placeholder</small>

0 commit comments

Comments
 (0)