[英]How to animate side slider
I need plugin/javascript for my wordpress which will allow me to show slided out divs. 我的wordpress需要插件/ javascript,这将允许我显示滑出的div。 For example:
例如:
before hover http://prntscr.com/9m4in3 悬停之前http://prntscr.com/9m4in3
after http://prntscr.com/9m4jxe 在http://prntscr.com/9m4jxe之后
Have you tried JQuery? 您是否尝试过JQuery? It is the most common js plugin for animations.
这是最常见的动画js插件。
jQuery's Slide Effect will do what you need. jQuery的Slide Effect将满足您的需求。
http://api.jqueryui.com/slide-effect/ http://api.jqueryui.com/slide-effect/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>slide demo</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<style>
#toggle {
width: 100px;
height: 100px;
background: #ccc;
}
</style>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
</head>
<body>
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
<script>
$( document ).click(function() {
$( "#toggle" ).toggle( "slide" );
});
</script>
</body>
</html>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.