使用 CSS 移动与鼠标相反的元素
我想实现 CSS 鼠标效果,其中: - 如果鼠标向左悬停在元素上,则元素向右移动。 - 如果鼠标向右悬停在元素上,则元素向左移动。 - 如果鼠标向上悬停在元素上,则该元素向下移动。 - 如果鼠标向下悬停在元素上,则元素向上移动。
什么 CSS 可以帮助我实现这一目标?
问候
I want to achieve a CSS mouse effect where:
-if the mouse hovers leftwards on the element, the element moves right.
-if the mouse hovers rightwards on the element, the element moves left.
-if the mouse hovers upwards on the element, the element moves down.
-if the mouse hovers downwards on the element, the element moves up.
What CSS can help me achieve this?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论