在【#CSS-动画-CSS-Animations】这里html用p标签容易造成误导 #1269
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
语法:transform: scale() 默认是以元素的水平垂直中心为源心,进行扩大/缩放。、
造成问题:这里用p标签,作为块级元素,它的源心就在hello文本的右侧,进行动画的时候文本在位置上,先往左移动,然后向右移动,给不注意的读者造成以为是scale出问题的错觉。针对这个,还真有人提问的,如:https://segmentfault.com/q/1010000007612783
所以应该将它更改为 非块级标签或者给定合适的宽高更方便读着理解。