Skip to content

Commit

Permalink
Fix linear checkbox animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad committed Jan 19, 2024
1 parent d888a1a commit 0377eb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/generic/CelebrationCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const localValue = computed({
<div class="cbx">
<!-- eslint-disable-next-line vuejs-accessibility/form-control-has-label -->
<input :id="id" v-model="localValue" type="checkbox" />
<div class="animation-helper" />
<svg width="15" height="14" viewbox="0 0 15 14" fill="none">
<path d="M2 8.36364L6.23077 12L13 2"></path>
</svg>
Expand Down Expand Up @@ -76,7 +77,7 @@ $primary: #866efb;
}
&:checked {
& + label {
& + .animation-helper {
animation: splash 0.6s ease forwards;
& + svg {
path {
Expand All @@ -86,7 +87,7 @@ $primary: #866efb;
}
}
}
label {
.animation-helper {
width: 24px;
height: 24px;
background: none;
Expand Down

0 comments on commit 0377eb9

Please sign in to comment.