If there is a three-dimensional picture on the page, there will always be a high-tech feeling. In fact, three-dimensional design is not difficult, we can achieve three-dimensional effect through CSS. Very simple to understand, first we can have such a simple idea, in order to highlight the three-dimensional, to let the shadow around the middle light, that is, CSS
In the Web development, many sites have done some particularly beautiful effect, such as user login frame mask layer effect, this article to introduce how CSS to achieve the login pop-up mask layer effect, the need for friends can refer to the source code of this article.
HTML+CSS
We have seen a lot of page right floating effect, the earliest QQ contact panel, couplet ads, and so on, most of them are based on javascript implementation of the dynamic effect, today I give you to share a only CSS with DIV implementation of the right side of the floating effect.HtmlWe want the suspension effect to l
, endcolorstr = blue, gradienttype = 1);}
The result is as follows:
3. gradient background in Firefox
For implementation of gradient backgrounds in Firefox (Firefox 3.6 +), you must use the css3 gradient attribute and the-moz-linear-gradient attribute.ArticleI have introduced in detail the implementation of the gradient background under firefox3.6. If you are interested, click here: CSS gradient css3 gradient is used under firefox3.6. I wil
Examples of CSS transition effect of web Front-end vue, web Front-end vuecss
The importance of transition effect in interactive experience is self-evident. In the past, we used js or Jquery to add or remove elements of classes, combined with the styles defined in CSS, and then reference some javascript libraries, which
1, how to use sprite map to achieve animation effect in the need to produce animation where the use of background-position to move. Then use Transtion to set the animation effect
2, Background-size:cover and contain what is the difference. Two are equal to the proportional shrinkage. But cover's scaling rules are as far as possible in the container, which will result in a part of the picture not showing. an
1. The effect of the rotation of the icon
HTML code:
CSS code:
Note: Transition and transform can be used in matching
PS: Set the I tag display, this rotation will not take effect.
. apply-entrance. Apply-tt I {
display:inline-block;
margin-left:2px;
Transition:transform 3s;
}
. Apply-entrance:hover. Apply-tt i{
transform:rotate (180deg);
2.
This article describes the JQUERY+CSS implementation of the page-changing tab bar effect. Share to everyone for your reference, specific as follows:
The screenshot of the running effect is as follows:
The specific code is as follows:
More about jquery effects related content readers can view the site topics: "jquery Common Classic Effects summary" an
Very interesting. Small Evil Then do a demo, wood useful plug-ins, only hang jquery.
Demo Demo Page
Css+jquery realizes the liquid in the soda bottle with the scroll bar:The website that drinks soda is to use a picture of a bottle, be divided into bottle bottle body, straw and bottle bottom. In these pictures the inside of the bottle is transparent, so we can at the bottom of the x-axis to tile the picture of the liquid, of course remember to fix t
This paper illustrates the dynamic block drift effect of jquery+css. Share to everyone for your reference, specific as follows:
The screenshot of the running effect is as follows:
The specific code is as follows:
More interested readers of jquery related content can view the site: "jquery animation and special effects usage Summary" and "jquery Commo
The example of this article tells the JQUERY+CSS to achieve a very beautiful horizontal navigation menu effect. Share to everyone for your reference, specific as follows:
The screenshot of the running effect is as follows:
The background picture used is tab.gif as follows:
The specific code is as follows:
More interested readers of jquery-related
css| Source Code
Used to make a flash album with flash-network version This effect a little learning this meaning.
For a line of code, I have spent two of nights to think about it, the result is that the feeling ie a bit abnormal. With the normal idea to do, FIREFOX and other browsers are no problem, only IE can not. Only if you add a line of garbage code, IE can be displayed properly.
Here's the
The example of this article describes the Circle loop effect of js+css rendering color dynamic change. Share to everyone for your reference, specific as follows:
The screenshot of the running effect is as follows:
The specific code is as follows:
More about JS effects related content Readers can view the site topics: "jquery animation and special eff
This article illustrates the method of js+css to realize navigation effect. Share to everyone for your reference. The implementation methods are as follows:
1. The program code is as follows:
Copy Code code as follows:
2. Program effect
I hope this article will help you with your JavaScript programming.
Css+jquery Create tab Toggle effect:
Effect as shown:
Create the following code:
Note: Before testing the code, the jquery.js should be introduced into the
How to achieve the effect of horizontal lines passing through text in an HTML page?
There are three ways to achieve this effect, as follows:
1, is the use of CSS style sheet text-decoration:line-through; Property
2, is the use of
3, is the use of
); This.updateview (); this. $ulImages. css (' left ', parsefloat (this. $ulImages. CSS ("left")-n*this. Liwidth); }, Move:function (n) {cleartimeout (This.timer); if (nToday, when I was writing a carousel, I found a small problem with jquery, and I really wanted to talk to you about it.Above is the JS code of the Carousel diagram, and the strange is:this. $ulImgs.
CSS implements the browser vertical horizontal center effect code:may be because the center is relatively beautiful, so some of the pop-up window or function module appears in the middle of the page, the following describes the use of CSS at one end of the implementation of the div to achieve vertical horizontal center effect
This article mainly introduces how javascript + CSS achieves sliding and switching the tab menu effect, involving javascript mouse events and dynamic switching of page element styles, for more information about how to use JS + CSS to switch tabs, see the example below. Share it with you for your reference. The details are as follows:
This is a simple JS +
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.