UPD: DevicePreview transitions
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
v-for="(color, key) in keys"
|
||||
:key="key" :class="{'outline outline-white ' : key === selected,
|
||||
'hover:outline outline-zinc-400' : key !== selected}"
|
||||
class="aspect-square flex-1 rounded-[2px] flex items-center justify-center"
|
||||
class="aspect-square flex-1 rounded-[2px] flex items-center justify-center transition-all"
|
||||
:style="`box-shadow: 0 0 20px 0 ${color.hex()}`"
|
||||
@click="$emit('select', key)">
|
||||
<span
|
||||
class="font-heading text-2xl"
|
||||
class="font-heading text-2xl transition-colors"
|
||||
:class="{'opacity-30 text-black': key!==selected}">{{ key }}
|
||||
</span>
|
||||
</button>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="rounded-full outline-2 absolute h-[41.5%] top-[24.5%] aspect-square left-0 right-0 mx-auto"
|
||||
class="rounded-full outline-2 absolute h-[41.5%] top-[24.5%] aspect-square left-0 right-0 mx-auto transition-all"
|
||||
:class="{'outline outline-white': selected==='ring',
|
||||
'hover:outline outline-zinc-400': selected!=='ring'}"
|
||||
@click="selected='ring'" />
|
||||
|
||||
Reference in New Issue
Block a user