Home > Web Front-end > JS Tutorial > js Clip's whimsical text splicing effect_javascript skills

js Clip's whimsical text splicing effect_javascript skills

WBOY
Release: 2016-05-16 18:59:04
Original
1299 people have browsed it

So someone asked, what CSS effects are both wonderful and practical? Clip, yes, it is the clip attribute in CSS, an attribute ignored by most people:

Syntax:
clip: auto | rect (number number number number)

Parameters:
auto: Object without shear
rect (number number number number): Provide four coordinates calculated from the upper left corner of the object as (0,0) in the order of top-right-bottom-left Offset value, any value can be replaced with auto, that is, this edge will not be cut.

It should be noted that
1.clip attribute must be used in conjunction with position:absolute.
2. The cutting reference point is always the upper left corner, which is different from margin and padding.
Example:


We can use clip to achieve cropping and editing of various elements splicing.
Classic text splicing implementation, colorful text effects:


Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template