简体   繁体   English

如何对按钮进行缩放效果?

[英]How can I do a zoom effect to a button?

I want to know If it is possible to do a zoom-transition to get Inside a Button, where are more Buttons to find?我想知道是否可以进行缩放转换以进入按钮内部,在哪里可以找到更多按钮? Like there are some Main theme buttons and I want to get to the sub themes with other Buttons.就像有一些主主题按钮,我想用其他按钮进入子主题。 And the Main theme buttons are dissolving after a Zoom Transition.并且主主题按钮在缩放转换后消失。 I need this Effect Inside one of My webpages.我需要在我的一个网页中使用此效果。

Is this possible with js and/or CSS/html?这对 js 和/或 CSS/html 可行吗?

You can try using transform您可以尝试使用变换

Eg.例如。

.button:hover {
transform: scale(1.5);
}

https://www.w3schools.com/howto/howto_css_zoom_hover.asp https://www.w3schools.com/howto/howto_css_zoom_hover.asp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM