Flippant.js 介绍
Flippant.js 是 DOM 节点上的一个迷你型 UI 库。具有以下特征:
Features:
代码示例:
var front = document.getElementById('flipthis') , back_content = "<h1>I'm the back!</h1>" // Generate or pull any HTML you want for the back. , back // when the correct action happens, call flip! back = flippant.flip(front, back_content) // this creates the back element, sizes it and flips it around. // call the close method on the back element when it's time to close. back.close() // alternatively you can trigger a close event on the back element if you fancy. var close_event = new CustomEvent('close') back.dispatchEvent(close_event)
Flippant.js 官网
https://github.com/mintchaos/flippant.js
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。