在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):zavoloklom/material-design-hierarchical-display开源软件地址(OpenSource Url):https://github.com/zavoloklom/material-design-hierarchical-display开源编程语言(OpenSource Language):JavaScript 85.3%开源软件介绍(OpenSource Introduction):Material Design Hierarchical Display 1.0.1![Latest Version](https://img.shields.io/github/release/zavoloklom/material-design-hierarchical-display.svg?style=flat-square&label=latest version) ![Software License](https://img.shields.io/badge/license-MIT License-blue.svg?style=flat-square) The jQuery plugin for Material Design hierarchical display animation effectHierarchical Timing is a meaningful transition introduced in Google Material Design that focuses your users attention in an app or how an app element got from point A to point B. InstallDownload: 1.0.1 (ZIP) DemoDemo site. UsageAdd CSS and JS files to your page:<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="zmd.hierarchical-display.min.css">
<!-- You need to include jquery.zmd.hierarchical-display.js after jQuery. Requires jQuery 1.7+. -->
<script src="jquery.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="jquery.zmd.hierarchical-display.min.js"></script> Add elements that you want to display<!-- It is parent element -->
<div data-animation="hierarchical-display">
<!-- All children (regardless of the tag name) in parent element would be animated, after plugin starts -->
<div></div>
<div></div>
<div></div>
</div> Via data attributeAdd Via JavaScriptAlso you can activate plugin manually from JavaScript: $('.zmd-hierarchical-display').hierarchicalDisplay(); Toggle animationIf you want to toggle your animation you should add <!-- It is parent element -->
<div id="parent" data-animation="hierarchical-display">
<!-- All children (regardless of the tag name) in parent element would be animated, after plugin starts -->
</div>
<!-- This element will toggle animation -->
<a href="#" data-toggle="hierarchical-display" data-target="#parent">Toggle animation</a> DocumentationStylesheetThe MD Hierarchical Display plugin utilizes a few classes to handle the heavy lifting:
These classes can be found in You don't need to add the class Also it require CSS animation from OptionsAll options of the plugin can be set via the corresponding data attributes, for example: ####action: ####speed: ####animationIn: ####animationOut: ####debug: Methods####.hierarchicalDisplay(options): $('.zmd-hierarchical-display').hierarchicalDisplay({
speed: 10
}) ####.hierarchicalDisplay('show'): ####.hierarchicalDisplay('hide'): ####.hierarchicalDisplay('toggle'): EventsMaterial Design Hierarchical Display plugin exposes a few events for hooking into displaying functionality. ####show.zmd.hierarchicalDisplay: ####shown.zmd.hierarchicalDisplay: ####hide.zmd.hierarchicalDisplay: ####hidden.zmd.hierarchicalDisplay: $('#myDisplayingElement').on('shown.zmd.hierarchicalDisplay', function () {
// do something…
}) Version numberThe version of plugin can be accessed via the VERSION property of the plugin's constructor: $.fn.hierarchicalDisplay.Constructor.VERSION // => "1.0.1" LicenceThe MIT License (MIT). Please see License File for more information. Browser Support
Browser support specified in accordance to caniuse.com portal (you can check CSS3 2D Transforms and animation). Changelogv1.0.1:
VersioningMaterial Design Hierarchical Display will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format: Author
Donate |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论