先看例子 This is a test 1. This is a test 2. This is a test 3. This is a test 4. This is a test 5. This is a test 1. 如果看完上一篇纵向滚动的朋友,就很容易理解横向滚动的实现方式了. 实现原理: 1. 利用CSS3的@keyframes规则创建动画效果: 2. 使用CSS3的animation效果完成滚动切换. @-webkit-keyframes scrollText2 { 0%{ -w
老惯例,先看例子. This is a test 1. This is a test 2. This is a test 3. This is a test 4. This is a test 5. This is a test 1. 实现原理: 1. 利用CSS3的@keyframes规则创建动画效果: 2. 使用CSS3的animation效果完成滚动切换. CSS代码 @-webkit-keyframes scrollText1 { 0%{ -webkit-transform: trans