How to use js to expand a picture from right to left?

for example, the head focus of https://www.qyer.com/ , the autoplay mode is that the picture is expanded from right to left, and the content on the right side of the picture is displayed first.

tried it himself. The style is right:0 and then change the width until it is resized, but the visual effect is still to show the content on the left side of the picture first. Is
a new feature of css3 or any other way of writing? I hope the great god will not hesitate to give me advice. Thank you

Jul.07,2022

clipboard.png

:width:0
:div img

clipboard.png

YY

:
next:width:0 width
next: floatleftfloatright


clipboard.png

clipboard.png

just do it



demogif


is implemented from the right, but I can't figure out how to make the last picture exist while scrolling. (let's see how to solve it)

<!DOCTYPE html>
<html lang="zh-CN">
<div>

    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
        <style>
            *{
                   margin: 0;
                   padding: 0;
               }
               ul,li{
                   list-style-type: none;
               }
               ul{
                   width:100%;
                   height:400px;
                   overflow: hidden;
                   position: relative;
               }
               li{
                position: absolute;
                width: 100%;
                height: 100%;
                z-index: 1;
                overflow: hidden;
               }
               img{
                   width: 100%;
                   height: 100%;
               }
            li div{
                opacity: 0;
                -webkit-transform: translate3d(100%, 0, 0);
                transform: translate3d(100%, 0, 0);

            }
            li .fadeInRight {
                opacity: 1;
                -webkit-transform: translate3d(0, 0, 0);
                transform: translate3d(0, 0, 0);
                transition: 2s ease-in-out;
                z-index: 3;
            }
    
        </style>
    </head>

    <body>
        <ul class="lunBoBox">
            <li>
                <div><img src="https://pic.qyer.com/public/home/focus/2019/02/22/15508149786321?imageMogr2/interlace/1|imageslim" alt=""></div>
            </li>
            <li>
                <div><img src="https://pic.qyer.com/public/home/focus/2019/02/25/15510649585571?imageMogr2/interlace/1|imageslim" alt=""></div>
            </li>
            <li>
                <div><img src="https://pic.qyer.com/public/home/focus/2019/02/22/15508146653008?imageMogr2/interlace/1|imageslim" alt=""></div>
            </li>
            
        </ul>
    </body>
</div>

</html>
<script type="text/javascript">
;
$(function() {
    var li = $(".lunBoBox li")
    var aa = 0;
    var liWidth = $(".lunBoBox li").width()
    var timer = setInterval(function() {
        aaPP;
        if (aa >= li.length) {
            aa = 0;
        }
        move()
    }, 3000)

    function move() {
        $(".lunBoBox li").find('div').removeClass('fadeInRight')
        $(".lunBoBox li").eq(aa).find('div').addClass('fadeInRight')
    }

})
</script>
Menu