Click here to view the original article
Code project caught fire!
The entire project has three categories, which allow you to add some cool effects to the image.
I put all these files in my code compressed package, and made a small project to make it easier for some people to use, but I did not provide their documentation.
After you click the "animate" button on the demo program, move your mouse over the image, click, and set other options. Slide strips are used to change the transparency of p
Android M has been released, but many machines are upgraded to Android L, after upgrading to L we find a lot of button click when there will be a ripple spread out the effect, cool to no friends. But not all versions have this effect, how to do? There is a great God developed a nineoldandroid animation package, we can use the inside of the API to do custom develo
Let's see the effect first.
Implementation effect
Simulate the effect of water ripple: Click on the screen there is a ring, the radius from small to large, transparency from large to small (0 transparent)
Realize the idea
1. Custom class inherits view.
2. Define the entity class Wave for each ring and initialize
Based on WebGL's cool element background ripple jQuery special effect, webgljqueryJquery. ripples is a jQuery special effect plug-in with extremely cool effects based on WebGL. With powerful WebGL, The jQuery plug-in can add a water wave layer to a specified element to produce cool water ripple effects and interact wit
The view we're going to implement today doesn't have a lot of interactive view, so it inherits view.
Custom view routines, very deep
1, get our custom attribute Attrs (can be omitted)
2, rewrite the Onmeasure method, calculate the control width and height
3, rewrite the OnDraw method, draw our control
So the custom view's routines are clear.
Let's look at today's effect chart, one of which is slowing down (the length of time)
We follow the
If the phone has a ripple effect, then the screen will be unlocked when the water ripple appears, if you want to cancel, please follow these steps:
1. Under the Standby page, click "Application".
2. Click "Set".
3. Slide the phone screen up with your finger and select "Lock Screen".
4. Select "Lock Screen option".
: Https://github.com/RomainPiel/TitanicCopy the code directly when you are using it (note that there is a wavy image under the res file to be copied together).XML code: Com.romainpiel.titanic.library.TitanicTextView Android:id = "@+id/text" android:layout_width= "Match_parent" android:layout_height= "Match_ Parent " android:gravity=" center " android:text=" Hello " android:textsize= "40sp"/>Java code:New Titanic (); Titanic.start (Mytitanictextview);I
This article describes the JS implementation of the image to produce ripple-like flash effect method. Share to everyone for your reference. The implementation methods are as follows:
I hope this article will help you with your JavaScript programming.
This tutorial uses Flash to make it easy to create a ripple effect on a picture.
Create a flash document, and then prepare a beautiful photo for the background, press Ctrl+j to adjust the properties.
Figure 1
Then the picture is converted to a movie clip, named Photo_mc, and then we set the location of the movie clip. Confirm that the movie clip is selected, we open the Alig
other search engines in China, search, Sogou what, but Baidu Google is the largest. Search engines are bound to collect data, the two giants as long as the acquisition of Chinese websites, will inevitably produce the same data, like a rippling on the same surface of the two hydrosphere, will certainly intersect together, and the intersection of that part of the content, is certainly unstable, the surface of the foundation is the great we, Webmaster site and countless fighting in the forefront o
Css ----- powerful effect, css ----- powerful effect
1
1. --- (the above is the html code)
1 # d1> span // The Sub-tag span2 {3 color: # f00; 4} 5 6 # all the tags under d1 span // span7 {8 color: # f00; 9}
2 ---- '+' and '~ '
'+': The Tag next to it must also be next to it to set
Css mobile terminal: Implementation of acitve effect and css mobile acitve Effect
There have been some days before the Mobile front-end, and there has been a problem that has not been solved, that is, the same effect as the pc: hover ,: hover is a selector of the elements wi
Simple css warning box and jitter effect, css warning and jitter Effect
The warning box for this effect will shake if an error occurs.
.alert-box { width: 400px; border-style: outset; position: relative; color:#555; border-radius
CSS-border-effect, css-border effect
Border 1.1
Border rounded corners and border shadow attributes are widely used and compatible. They comply with the progressive enhancement principle and need to be mastered.
1.1.1 border rounded corner
Border-radius two values, x and y, can be set for each angle.
1: border rounded
sets the pivot in the element, but it is also different from the parent element setting. Because the parent element is the whole as a perspective, and the element itself as a perspective, it causes the difference.Specific test to see perspective distance img {Transform:perspective (1000px) Rotatey (45deg);}Introduction to TransitionsTransitions typically trigger smooth transitions through a few simple CSS actions, such as: hover,: Focus,: Active,: ch
CSS background effect and css backgroundPrevious
This article will detail the CSS background Effects
Striped background
[Dual-striped background]
background:linear-gradient(#fb3 50%, #58a 50%); background-size: 100% 30px;
CSS standard: if the position value of a color lab
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.