Built-in Transition

You can use Element's built-in transitions directly. Before that, please read the transition docs.

Fade

We have two fading effects: el-fade-in-linear and el-fade-in.

.el-fade-in-linear
.el-fade-in

Zoom

el-zoom-in-center, el-zoom-in-top and el-zoom-in-bottom are provided.

.el-zoom-in-center
.el-zoom-in-top
.el-zoom-in-bottom

Collapse

For collapse effect, use the el-collapse-transition component.

el-collapse-transition
el-collapse-transition

On-demand import

ts
// collapse
import { ElCollapseTransition } from 'element-plus'
// fade/zoom
import 'element-plus/lib/theme-chalk/base.css'
import App from './App.vue'

const app = createApp(App)
app.component(ElCollapseTransition.name, ElCollapseTransition)