-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Advance configuration + Add creation of custom set of cards
* feat: 🎸 Add More config settings + add custom deck cards * feat: 🎸 Add multilanguage in deck creation page * feat: 🎸 Add remove card when click on * style: 💄 Update style
- Loading branch information
1 parent
2178a26
commit a5f502a
Showing
17 changed files
with
871 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
export function accordion(node, isOpen) { | ||
let initialHeight = node.offsetHeight; | ||
node.style.height = isOpen ? 'auto' : 0; | ||
node.style.overflow = "hidden"; | ||
return { | ||
update(isOpen) { | ||
let animation = node.animate( | ||
[ | ||
{ | ||
height: initialHeight + 'px', | ||
overflow: 'hidden' | ||
}, | ||
{ | ||
height: 0, | ||
overflow: 'hidden' | ||
} | ||
], | ||
{ duration: 300, fill: 'both' } | ||
); | ||
animation.pause(); | ||
if (!isOpen) { | ||
animation.play(); | ||
} else { | ||
animation.reverse(); | ||
} | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.