Home Web Front-end JS Tutorial jquery implements image switching effect of LED billboard rotation system

jquery implements image switching effect of LED billboard rotation system

Feb 04, 2017 am 09:26 AM

The example of this article describes the jquery implementation of the image switching effect of the LED billboard rotation system, and shares it with everyone for your reference. The details are as follows:
js simulates the advertising switching effect on the huge display screen on the roadside. I have to believe that js can do it, and it has a realistic effect that leaves you speechless.
The picture switching effect on the LED advertising display is similar to the scene. The effect is so shocking that I was stunned. If you love special effects, don’t miss it!
Operation rendering:

jquery implements image switching effect of LED billboard rotation system

Tips: If the browser cannot run normally, you can try switching the browsing mode.
The jquery implementation of the LED billboard rotation system image switching effect code shared with you is as follows

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery implements image switching effect of LED billboard rotation system</title>
<link rel="stylesheet" href="css/lanrenzhijia.css" type="text/css" />
</head>
<body>
 <div class="palmtrees"></div>
  <div class="powerline"></div>
  <div class="city"></div>
  <div class="container">
   <div class="ad">
    <div id="ad_1" class="ad_1">
     <img  class="slice_1 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice01.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_2 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice02.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_3 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice03.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_4 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice04.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_5 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice05.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_6 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice06.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_7 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice07.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_8 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice08.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_9 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice09.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_10 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice10.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_11 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice11.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_12 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice12.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_13 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice13.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_14 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice14.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_15 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice15.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_16 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice16.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_17 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice17.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_18 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice18.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_19 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice19.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_20 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice20.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_21 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice21.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_22 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad1_slice22.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
    </div>
    <div id="ad_2" class="ad_2">
     <img  class="slice_1 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice01.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_2 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice02.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_3 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice03.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_4 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice04.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_5 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice05.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_6 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice06.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_7 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice07.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_8 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice08.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_9 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice09.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_10 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice10.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_11 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice11.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_12 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice12.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_13 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice13.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_14 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice14.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_15 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice15.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_16 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice16.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_17 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice17.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_18 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice18.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_19 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice19.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_20 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice20.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_21 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice21.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
     <img  class="slice_22 lazy"  src="/static/imghw/default1.png"  data-src="ads/ad2_slice22.jpg"   / alt="jquery implements image switching effect of LED billboard rotation system" >
    </div>
   </div>
  </div>
  <div class="billboard"></div>
  <script src="js/jquery-1.3.2.js" type="text/javascript"></script>
  <script>
$(function() {   
 $(&#39;#ad_1 > img&#39;).each(function(i,e){
  rotate($(this),500,3000,i);
 });
 function rotate(elem1,speed,timeout,i){
  elem1.animate({&#39;marginLeft&#39;:&#39;18px&#39;,&#39;width&#39;:&#39;0px&#39;},speed,function(){
   var other;
   if(elem1.parent().attr(&#39;id&#39;) == &#39;ad_1&#39;)
    other = $(&#39;#ad_2&#39;).children(&#39;img&#39;).eq(i);
   else
    other = $(&#39;#ad_1&#39;).children(&#39;img&#39;).eq(i);
    other.animate({&#39;marginLeft&#39;:&#39;0px&#39;,&#39;width&#39;:&#39;35px&#39;},speed,function(){
    var f = function() { rotate(other,speed,timeout,i) };
    setTimeout(f,timeout);
   });
  });
 }
});
  </script>
</body>
</html>
Copy after login

The above is the jquery implementation LED billboard rotation system image switching effect code shared with you, I hope you can like it.

For more jquery-related articles on realizing the image switching effect of the LED billboard rotation system, please pay attention to the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if I encounter garbled code printing for front-end thermal paper receipts? What should I do if I encounter garbled code printing for front-end thermal paper receipts? Apr 04, 2025 pm 02:42 PM

Frequently Asked Questions and Solutions for Front-end Thermal Paper Ticket Printing In Front-end Development, Ticket Printing is a common requirement. However, many developers are implementing...

Demystifying JavaScript: What It Does and Why It Matters Demystifying JavaScript: What It Does and Why It Matters Apr 09, 2025 am 12:07 AM

JavaScript is the cornerstone of modern web development, and its main functions include event-driven programming, dynamic content generation and asynchronous programming. 1) Event-driven programming allows web pages to change dynamically according to user operations. 2) Dynamic content generation allows page content to be adjusted according to conditions. 3) Asynchronous programming ensures that the user interface is not blocked. JavaScript is widely used in web interaction, single-page application and server-side development, greatly improving the flexibility of user experience and cross-platform development.

Who gets paid more Python or JavaScript? Who gets paid more Python or JavaScript? Apr 04, 2025 am 12:09 AM

There is no absolute salary for Python and JavaScript developers, depending on skills and industry needs. 1. Python may be paid more in data science and machine learning. 2. JavaScript has great demand in front-end and full-stack development, and its salary is also considerable. 3. Influencing factors include experience, geographical location, company size and specific skills.

How to achieve parallax scrolling and element animation effects, like Shiseido's official website?
or:
How can we achieve the animation effect accompanied by page scrolling like Shiseido's official website? How to achieve parallax scrolling and element animation effects, like Shiseido's official website? or: How can we achieve the animation effect accompanied by page scrolling like Shiseido's official website? Apr 04, 2025 pm 05:36 PM

Discussion on the realization of parallax scrolling and element animation effects in this article will explore how to achieve similar to Shiseido official website (https://www.shiseido.co.jp/sb/wonderland/)...

The Evolution of JavaScript: Current Trends and Future Prospects The Evolution of JavaScript: Current Trends and Future Prospects Apr 10, 2025 am 09:33 AM

The latest trends in JavaScript include the rise of TypeScript, the popularity of modern frameworks and libraries, and the application of WebAssembly. Future prospects cover more powerful type systems, the development of server-side JavaScript, the expansion of artificial intelligence and machine learning, and the potential of IoT and edge computing.

Is JavaScript hard to learn? Is JavaScript hard to learn? Apr 03, 2025 am 12:20 AM

Learning JavaScript is not difficult, but it is challenging. 1) Understand basic concepts such as variables, data types, functions, etc. 2) Master asynchronous programming and implement it through event loops. 3) Use DOM operations and Promise to handle asynchronous requests. 4) Avoid common mistakes and use debugging techniques. 5) Optimize performance and follow best practices.

How to merge array elements with the same ID into one object using JavaScript? How to merge array elements with the same ID into one object using JavaScript? Apr 04, 2025 pm 05:09 PM

How to merge array elements with the same ID into one object in JavaScript? When processing data, we often encounter the need to have the same ID...

Zustand asynchronous operation: How to ensure the latest state obtained by useStore? Zustand asynchronous operation: How to ensure the latest state obtained by useStore? Apr 04, 2025 pm 02:09 PM

Data update problems in zustand asynchronous operations. When using the zustand state management library, you often encounter the problem of data updates that cause asynchronous operations to be untimely. �...

See all articles