Tạo hiệu ứng tuyết rơi và ông già Noel di chuyển trên blogspot trang trí Noel cực đẹp

Tạo hiệu ứng tuyết rơi và ông già Noel di chuyển trên blogspot trang trí Noel cực đẹp

Start Tiến IT đã đăng
Hiện có lượt xem và 0 bình luận
Chi tiết Liên quan Nhận xét Tác giả Hướng dẫn
  • Xem toàn trang
  • Bài viết này mình sẽ giới thiệu đến các bạn đoạn CSS, HTML và JAVASCRIPT tạo hiệu ứng tuyết rơi tuyệt đẹp và ông già noel di chuyển trên blogspot. Code cũng không ảnh hưởng mấy tới tốc độ của blog nên các bạn không cần quan tâm về nó.
    Demo các bạn có thể xem ở blog của mình.
    Tạo hiệu ứng tuyết rơi và ông già Noel di chuyển trên blogspot

    Các bước thực hiện:

    Bước 1: Truy cập vào trang chỉnh sửa HTML của Blogspot.
    Bước 2: Dán 2 đoạn code phía dưới và trước thẻ </body>

    Code hiệu ứng tuyết rơi:

    <style type="text/css">
    .snow-container { position:fixed; width:100%; max-width:100%; z-index:99999; pointer-events:none; overflow:hidden; top:0; height:100% }
    .snow { display:block; position:absolute; z-index:2; top:0; right:0; bottom:0; left:0; pointer-events:none; -webkit-transform:translate3d(0,-100%,0); transform:translate3d(0,-100%,0); -webkit-animation:snow linear infinite; animation:snow linear infinite }
    .snow.foreground { background-image:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho3P6BcPm3CEszO9aQIa4Mh9rQPwLP57bqSeZDwWpRV0BbEFWz6U9anD9O1p34N9G9Hh5T6VIgSxnt7VH-HYq3WATS5wdAhfmrqC5D18yH2lEE6Jm7_roqnA84eBlbskC7gybutSOu8gPq/s1600/snow-effect-_---------BacSiWindows-Com.png "); -webkit-animation-duration:15s; animation-duration:10s }
    .snow.foreground.layered { -webkit-animation-delay:7.5s; animation-delay:7.5s }
    .snow.middleground { background-image:url(https://dl6rt3mwcjzxg.cloudfront.net/assets/snow/snow-medium-0b8a5e0732315b68e1f54185be7a1ad9.png); -webkit-animation-duration:20s; animation-duration:15s }
    .snow.middleground.layered { -webkit-animation-delay:10s; animation-delay:10s }
    .snow.background { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfonkxsnpHOx65f9R3qSDNNL_NPhzS5u_E-EmZdb0yovexJfLh2vnBEZzqpyA2PqOk_b2t2ROb5Eii_bBq4Fq95Rz50AwXgG0eyuG2iwTnphBHTDQlLMr4WgKnELKxYZl8GIYzYiTb3xcD/s1600/snow-effect_-_--------------BacSiWindows-Com.png); -webkit-animation-duration:25s; animation-duration:20s }
    .snow.background.layered { -webkit-animation-delay:12.5s; animation-delay:12.5s }
    @-webkit-keyframes snow {
    0% { -webkit-transform:translate3d(0,-100%,0); transform:translate3d(0,-100%,0) } 100% { -webkit-transform:translate3d(5%,100%,0); transform:translate3d(5%,100%,0) }
    }
    @keyframes snow {
    0% { -webkit-transform:translate3d(0,-100%,0); transform:translate3d(0,-100%,0) } 100% { -webkit-transform:translate3d(5%,100%,0); transform:translate3d(5%,100%,0) }
    }
    </style>
    <div class='snow-container'><div class='snow foreground'/><div class='snow foreground layered'/><div class='snow middleground'/><div class='snow middleground layered'/><div class='snow background'/><div class='snow background layered'/></div>

    Code ông già Noel di chuyển:

    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'type='text/javascript'></script>
    <script type='text/javascript'>
    //<![CDATA[
    $(function(){$('html').append('<img id="halo" title="Happy Noel" style="cursor:pointer; position:fixed; z-index:99999" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoVZdqq50LeCWseY0eLmnNyUujAfy298anXbjqruccQ2CO-GcsyZ-tbBFONeOZVy-FkpZb0kuBVqqCN511XYdhEZhA3dUkjPrh3vddUujynxpo5tDQ-b3UJY2Fqn1w5NrfDOK3MADaikA/s1600/tuan_loc_cho_qua_cua_ong_gia_noel_anh.gif"/>')
    setInterval(function(){var $X=Math.ceil(Math.random()*$(window).width())
    var $Y=Math.ceil(Math.random()*$(window).height())
    $('img#halo').animate( { 'left':$X,'top':$Y }
    ,5000)}
    ,5000)
    $('img#halo').click(function() { window.open('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoVZdqq50LeCWseY0eLmnNyUujAfy298anXbjqruccQ2CO-GcsyZ-tbBFONeOZVy-FkpZb0kuBVqqCN511XYdhEZhA3dUkjPrh3vddUujynxpo5tDQ-b3UJY2Fqn1w5NrfDOK3MADaikA/s1600/tuan_loc_cho_qua_cua_ong_gia_noel_anh.gif','') }
    )}
    )
    //]]>
    </script>
    Lưu ý: Nếu blog của các bạn có thư viện jquery rồi thì các bạn xóa đoạn
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'type='text/javascript'></script>
    trong code 2 đi
    Chúc các bạn thành công!
    Nguồn: Bác Sỉ Window và dinhboblog
    Mục Lục Nội Dung

      Minh Tiến IT

      Pass giải nén mặc định: truongblogger
      Chắc bạn cũng đã nhiều lần gặp những link của 123link dạng 123link.co tại những trang web chia sẻ nội dung số. Nhưng bạn không biết cách nào để truy cập vào đúng link gốc của nội dung mà mình muốn truy cập. Bài viết này sẽ giúp bạn làm điều đó.
      Đầu tiên bạn truy cập vào một link 123link. Khi bạn truy cập xong thì nội dung bạn thấy sẽ tựa như hình ở dưới.
      Trang 123link
      Trang 123link
      Đánh dấu check vào vô “I’m not a robot”. Sau đó sẽ có một bảng captcha hiện ra. Bạn trả lời theo câu hỏi của captcha rồi bấm Verify để xác nhận.
      I’m not a robot
      I’m not a robot
      Verify
      Verify
      Sau khi xác nhận captcha thành công thì bấm chọn nút “Click here to continue” để sang bước tiếp theo.
      Click here to continue
      Click here to continue
      Ở trang tiếp theo, bạn sẽ thấy một đồng hồ đếm ngược, thường thì nhiều nhất sẽ là 7 giây. Bạn đợi cho thời gian đếm ngược chạy hết.
      Bạn đợi cho thời gian đếm ngược chạy hết
      Bạn đợi cho thời gian đếm ngược chạy hết
      Khi thời gian đếm ngược chạy hết, bạn sẽ thấy nút Get Link hiện ra. Bạn bấm vào nút đó để truy cập đến đường link đã được rút gọn bởi 123link.
      Get Link
      Get Link
      Bạn cứ yên tâm là link từ 123link sẽ không có ẩn chứa những mối nguy hiểm như virus, các pop-up quảng cáo không lành mạnh và phiền toái khi bạn đang thao tác các bước để tới link đích.
      HIỆN CÓ 0 BÌNH LUẬN