Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
804 views
in Technique[技术] by (71.8m points)

vue.js - Sidebar transition with tailwind and vuejs

I'm trying to add a transition effect to the sidebar when its being toggle so that it looks like its sliding from w-0 to w-64. Is there a way to the it without vue transition?

<a href="#" @click="isOpenSidebar=!isOpenSidebar">Toggle</a>

<div class="flex flex-row max-w-7xl mx-auto">
    <div class="flex flex-col shadow-xl sm:rounded-lg my-12" :class="isOpenSidebar? 'md:w-64 w-full':'w-0' ">
        <Sidebar/>
    </div>
    <div class="flex w-full">
        <slot></slot>
    </div>
</div>
question from:https://stackoverflow.com/questions/65842670/sidebar-transition-with-tailwind-and-vuejs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...