mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
feat(carousel): add active transform style for button (#534)
This commit is contained in:
parent
df8186480d
commit
661cf152c9
@ -79,6 +79,9 @@ export default cB('carousel', `
|
||||
`, [
|
||||
c('&:hover', {
|
||||
transform: 'translateY(-50%) scale(1.1)'
|
||||
}),
|
||||
c('&:active', {
|
||||
transform: 'translateY(-50%) scale(1)'
|
||||
})
|
||||
]),
|
||||
cM('top', `
|
||||
@ -88,6 +91,9 @@ export default cB('carousel', `
|
||||
`, [
|
||||
c('&:hover', {
|
||||
transform: 'translateX(-50%) scale(1.1) rotate(90deg)'
|
||||
}),
|
||||
c('&:active', {
|
||||
transform: 'translateX(-50%) scale(1) rotate(90deg)'
|
||||
})
|
||||
]),
|
||||
cM('bottom', `
|
||||
@ -97,6 +103,9 @@ export default cB('carousel', `
|
||||
`, [
|
||||
c('&:hover', {
|
||||
transform: 'translateX(-50%) scale(1.1) rotate(90deg)'
|
||||
}),
|
||||
c('&:active', {
|
||||
transform: 'translateX(-50%) scale(1) rotate(90deg)'
|
||||
})
|
||||
])
|
||||
]),
|
||||
|
Loading…
Reference in New Issue
Block a user