• css图片滚动


    1. <template>
    2. <view class="dade">
    3. <view>
    4. <image class="dade_img" src="https://xcx.youmeichenpin.com//static/cj/800.jpg">image>
    5. view>
    6. <view>
    7. <view class="dade_ti">
    8. <image class="dade_imgs" src="https://xcx.youmeichenpin.com//static/cj/kuang.png">image>
    9. view>
    10. <view class="dade_ti1">
    11. <view class="dade_imgs">
    12. <view style="display: flex;" v-for="it in index">
    13. <view><image class="dade_imgs1" src="https://xcx.youmeichenpin.com/static/cj/1.png">image>view>
    14. <view><image class="dade_imgs1" src="https://xcx.youmeichenpin.com/static/cj/2.png">image>view>
    15. <view><image class="dade_imgs1" src="https://xcx.youmeichenpin.com/static/cj/3.png">image>view>
    16. <view><image class="dade_imgs1" src="https://xcx.youmeichenpin.com/static/cj/4.png">image>view>
    17. <view><image class="dade_imgs1" src="https://xcx.youmeichenpin.com/static/cj/5.png">image>view>
    18. <view><image class="dade_imgs1" src="https://xcx.youmeichenpin.com/static/cj/6.png">image>view>
    19. view>
    20. view>
    21. view>
    22. view>
    23. view>
    24. template>
    25. <script>
    26. export default {
    27. data() {
    28. return {
    29. index:[1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,32,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2],
    30. dade:[]
    31. }
    32. },
    33. onLoad() {
    34. },
    35. onReady() {
    36. },
    37. onShow: function() {
    38. },
    39. methods: {
    40. // 签到
    41. goSignIn() {
    42. uni.navigateTo({
    43. url: '/pages/users/user_sgin/index'
    44. })
    45. },
    46. }
    47. }
    48. script>
    49. <style lang="scss">
    50. .dade{
    51. width: 100%;
    52. height: 100%;
    53. .dade_img{
    54. width: 750rpx;
    55. height: calc(100vh);
    56. z-index: 2;
    57. }
    58. .dade_ti{
    59. position: absolute;
    60. top: 30%;
    61. width: 700rpx;
    62. left: 25rpx;
    63. z-index: 10;
    64. .dade_imgs{
    65. width: 100%;
    66. height: 350rpx;
    67. }
    68. }
    69. .dade_ti1{
    70. position: absolute;
    71. top: 34.8%;
    72. width: 550rpx;
    73. left: 100rpx;
    74. z-index: 10;
    75. .dade_imgs{
    76. display: flex;
    77. overflow: auto;
    78. width: 550rpx;
    79. .dade_imgs1{
    80. animation: rolling 20s linear infinite;
    81. @keyframes rolling {
    82. from {
    83. transform: translateX(0);
    84. }
    85. to {
    86. transform: translateX(-1000%);
    87. }
    88. }
    89. width: 170rpx;
    90. height: 230rpx;
    91. margin-left: 10rpx;
    92. }
    93. }
    94. }
    95. }
    96. style>

  • 相关阅读:
    永磁同步电机(PMSM)磁场定向控制(FOC)及Matlab/Simulink仿真分析
    职场成长的三种方式
    团建游戏大全
    Drozer安装
    别名获取方式记录
    千亿级大数据如何存储的?
    在Go项目中使用ELK进行日志采集
    阿冰的思考
    js 判断是 Android 设备还是苹果设备?
    Express的基本使用app.post()app.get()res.send()
  • 原文地址:https://blog.csdn.net/qq_34631220/article/details/126087125