• 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>

  • 相关阅读:
    视频监控/安防监控/AI视频分析/边缘计算/TSINGSEE青犀AI算法智慧仓储解决方案
    Android sqlite 使用简介
    Spring注解家族介绍: @RequestMapping
    百度搜索首届技术创新挑战赛 丰厚奖励等你拿!
    SOI技术及产业发展研究
    【算法03】对数器
    会员营销中,数字会员模式如何打造差异化会员服务
    如何让Java的线程池顺序执行任务?
    Python+Vue实现简单的前后端分离
    springboot启动的shell脚本与参数
  • 原文地址:https://blog.csdn.net/qq_34631220/article/details/126087125