Home >Web Front-end >JS Tutorial >Native Js realizes elements fading/appearing (the principle is to modify the css transparency of elements)_javascript skills

Native Js realizes elements fading/appearing (the principle is to modify the css transparency of elements)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:31:311713browse

I often see gradient displays of images on web pages, so I decided to write one myself.
The principle is very simple: modify the CSS transparency of the element.
Online preview: http://jsfiddle.net/dtdxrk/BHUp9/embedded/result/

Copy code Code As follows:





Native Js element fade/fade method








Statement:
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