We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS 函数 scale() 用于定义元素的缩放值来放大或缩小元素,当其只有一个参数时,元素会等比缩放。这里有个鲜为人知的技巧是:它的参数值可以为负数。当为负数时,元素会左右、上下翻转(效果和 rotate(180deg) 一样),然后进行缩放。那如果我们定义了 scale 的值从正整数到负整数过渡会如何?效果就是实现了元素在翻转的同时缩放。
scale()
rotate(180deg)
scale
<p class="scale">The quick brown fox jumps over the lazy dog.</p>
.scale { font-size: 30px; text-align: center; transform: scale(1); animation: scale 5s infinite linear; } @keyframes scale { 50% { transform: scale(-1); } 100% { transform: scale(-1); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CSS 函数
scale()
用于定义元素的缩放值来放大或缩小元素,当其只有一个参数时,元素会等比缩放。这里有个鲜为人知的技巧是:它的参数值可以为负数。当为负数时,元素会左右、上下翻转(效果和rotate(180deg)
一样),然后进行缩放。那如果我们定义了scale
的值从正整数到负整数过渡会如何?效果就是实现了元素在翻转的同时缩放。The text was updated successfully, but these errors were encountered: