2019-11-02 11:03:31 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<title>okAnimate</title>
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2021-08-02 07:46:20 +00:00
|
|
|
|
<link rel="stylesheet" href="/css/oksub.css">
|
2019-11-02 11:03:31 +00:00
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="ok-body">
|
|
|
|
|
|
<blockquote class="layui-elem-quote">
|
|
|
|
|
|
<p>Animate.css 一款强大的预设css3动画库</p>
|
|
|
|
|
|
</blockquote>
|
|
|
|
|
|
<pre>
|
|
|
|
|
|
// Step1
|
|
|
|
|
|
引入:css/oksub.css
|
|
|
|
|
|
// Step2
|
|
|
|
|
|
<span class="ok-anim shake">文字特效</span>>
|
|
|
|
|
|
</pre>
|
|
|
|
|
|
<button type="button" class="layui-btn" id="try">试一下</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!--js逻辑-->
|
2021-08-02 07:46:20 +00:00
|
|
|
|
<script src="/lib/layui-v2.6.8/layui/layui.js"></script>
|
|
|
|
|
|
<script src="/js/initOkmodules.js"></script>
|
2019-11-02 11:03:31 +00:00
|
|
|
|
<script>
|
|
|
|
|
|
layui.use(["code"], function () {
|
|
|
|
|
|
let code = layui.code;
|
|
|
|
|
|
let $ = layui.jquery;
|
|
|
|
|
|
|
|
|
|
|
|
code({
|
|
|
|
|
|
elem: "pre",
|
|
|
|
|
|
title: "代码示例",
|
|
|
|
|
|
encode: true
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#try").click(function () {
|
|
|
|
|
|
$(this).addClass("ok-anim shake");
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|