跳转至

实现图片懒加载

图片懒加载

<!DOCTYPE html>
<html>
<head>
    <script src="https://unpkg.com/scrollreveal@4"></script>
</head>
<body>

    <div class="headline">
        Widget, Inc.
    </div>

    <script>
        ScrollReveal().reveal('.headline');
    </script>
</body>
</html>

<在线演示:https://jsbin.com/jufohaxonu/edit?html,output>

用一下你就懂了!