Jquery UI vibration effect implementation principle and steps_jquery
If you want to attract readers' attention to certain parts of your blog page, you can make these parts vibrate, such as ads. Today's article will introduce how to make elements in your page vibrate.
To achieve this purpose we need to use Jquery and Jquery UI.
First, let me create a shake block, which can be a picture or an ordinary dom element, such as div, span, etc., and name the element's id as shake. You can name it arbitrarily.
We use pictures as follows:
< ;img src="http://jqueryui.com/jquery-wp-content/themes/jquery/images/logo-jquery-ui.png" id="shake"/>
Jquery UI does not have a ready-made method to vibrate elements. We need to use the effect method to achieve it. The syntax is as follows:
effect('shake', options, speed);
Parameter options (there are three parameters here):
·times: Specify the number of times the element shakes
•distance: Specify the vibration amplitude of the element
•Direction: Specify the vibration direction of the element
The following is the specific implementation method, set the vibration 3 times, and call the vibration every 500ms:
function interval() {
$('#shake').effect('shake', { times:3 }, 100);
}
$(document).ready(function() {
var shake = setInterval(interval, 500);
});
Here I imported the latest version.
The complete code is attached below
<script> <br>function interval() { <br>$('#shake').effect('shake', { times:3 }, 100); <br>} <br>$(document ).ready(function() { <br>var shake = setInterval(interval, 500); <br>}); <br></script>
jQuery Shake Effect

html>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



In Elden's Ring, the UI page of this game will be automatically hidden after a period of time. Many players do not know how the UI is always displayed. Players can select the gauge display configuration in the display and sound configuration. Click to turn it on. Why does the Elden Ring UI keep displaying? 1. First, after we enter the main menu, click [System Configuration]. 2. In the [Display and Sound Configuration] interface, select the meter display configuration. 3. Click Enable to complete.

Vue is a popular JavaScript framework that uses a component-based approach to build web applications. In the Vue ecosystem, there are many UI component libraries that can help you quickly build beautiful interfaces and provide rich functions and interactive effects. In this article, we will introduce some common VueUI component libraries. ElementUIElementUI is a Vue component library developed by the Ele.me team. It provides developers with a set of elegant,

For AI, "playing with mobile phones" is not an easy task. Just identifying various user interfaces (UI) is a big problem: not only must the type of each component be identified, but also the symbols used , position to determine the function of the component. Understanding the UI of mobile devices can help realize various human-computer interaction tasks, such as UI automation. Previous work on mobile UI modeling usually relies on the view hierarchy information of the screen, directly utilizing the structural data of the UI, and thereby bypassing the problem of identifying components starting from the screen pixels. However, view hierarchy is not available in all scenarios. This method usually outputs erroneous results due to missing object descriptions or misplaced structural information, so even if you use

UI is the abbreviation of "User Interface", which is mainly used to describe the human-computer interaction, operation logic and beautiful interface of the software. The purpose of UI design is to make software operation easier and more comfortable, and fully reflect its positioning and characteristics. Common UI designs are divided into physical UI and virtual UI, among which virtual UI is widely used in the Internet field.
![How to set the alarm clock on your iPhone to vibrate without making a sound [Recommended method to set an alarm clock on your iPhone that only vibrates without ringing]](https://img.php.cn/upload/article/000/887/227/170730303734961.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
Many students who live in dormitories or who live with others are always worried that their alarm clocks will disturb their roommates’ rest, and simply turning off the alarm clock may cause the alarm clock to malfunction. Let’s take a look at how to set only vibration on the iPhone. Alarm clock that doesn't ring. How to set an alarm on iPhone that only vibrates without ringing? ●Go to "Clock", tap the "Alarm Clock" tab, tap the "Edit Button", select the alarm clock you want to set in the alarm clock list, tap "Ringtone"; ●After setting the vibration type, swipe down to find and tap " None", return and tap "Save". ●Or go to "Clock" - "Bedtime", tap the "Options" button, tap "Wake-up Ringtone", select the vibration type, and select "None". ok, this article ends here

The jQuery mobile UI framework is a tool for developing mobile applications. It provides rich interface components and interactive effects, allowing developers to quickly build excellent mobile user interfaces. In this article, we will explore some of the most popular jQuery mobile UI frameworks and provide specific code examples to help readers better understand and use these frameworks. 1.jQueryMobiljQueryMobile is an open source mobile UI framework based on HTML5 and CSS3.

A few days ago, Google officially pushed the Android 15 Beta 4 update to eligible Pixel smartphone and tablet users. This marks that the Android 15 operating system has entered the platform stable stage, indicating that its stable version will be officially released with global users in the next few days. Meet. At the same time, this development also injects new vitality into Samsung Electronics' Galaxy device series to accelerate the development process of its OneUI7.0 version. 1.[Android15Beta4 promotes Samsung OneUI7.0 stable build](https://www.cnbeta.com/articles/tech/1427022.htm) With Android15Bet

The difference between ux and ui design: 1. UX makes the interface easier to use, and UI makes the interface more beautiful; 2. UX allows users to achieve their goals, and UI makes the interface enhance the brand sense; 3. UX core goals guide users to complete tasks, UI does not; 4. The deliverables of UI and UX are different. The output of UX includes UX experience report, function definition, function planning, project progress, etc., while the output of UI includes visual and interaction, visual design, brand design, motion design, and component design. and design language, etc.
