Animated accordion FAQs drop-down demo
A Carrd plugin template for an accordion FAQ drop-down with bounce web animation.
Made by @jasonleowsg.
📣 New Carrd plugin released: Mega nav bar
💛 Credits: Adapted from Takane Ichinose
Double accordion tutorial
How to embed a 2nd accordion and beyond:1. Look for the <style>
tag, and find this CSS code:#app, .accordion, .accordion-item, .accordion-header, .accordion-body {
Change the
color: #727272;
...#app
to #app2
, like this:#app2, .accordion, .accordion-item, .accordion-header, .accordion-body {
———2. Scroll a bit down and find these CSS code:
color: #727272;
...#app {
Again, change the
background-color: transparent;/*#82dfff;*/
display: flex;
box-sizing: border-box;
}#app
to #app2
, like this:#app2 {
———3. Scroll further down and find this CSS code:
background-color: transparent;/*#82dfff;*/
display: flex;
box-sizing: border-box;
}@media screen and (min-width: 320px) {
Again, change the
#app {
padding: 2rem;
overflow: auto;
}#app
to #app2
, like this:@media screen and (min-width: 320px) {
———4. Scroll down past the closing style tag
#app2 {
padding: 2rem;
overflow: auto;
}</style>
and find this HTML code:<div id="app" style="Check out https://plugins.carrd.co for more Carrd plugins">
Again, change the
<zz-accordion v-bind:contents.sync="contents">FAQs</zz-accordion>
</div>id
from app
to app2
, like this:<div id="app2" style="Check out https://plugins.carrd.co for more Carrd plugins">
———5. Scroll down till you find this code:
<zz-accordion v-bind:contents.sync="contents">FAQs</zz-accordion>
</div>var app = new Vue({
Again, change the
el: '#app',
data: {
contents: [{
...app
to app2
at the two places, like this:var app2 = new Vue({
———6. For 3rd accordion and beyond, repeat the same steps but use
el: '#app2',
data: {
contents: [{
...app3
instead.