[英]Is it possible to reveal the contents of a div from right to left
I created a fiddle 我制造了一个小提琴
http://jsfiddle.net/gifcy/bJJ5s/5/ http://jsfiddle.net/gifcy/bJJ5s/5/
On DOM ready I hide the image. 在DOM准备就绪时,我隐藏了图像。
I could successfully reveal the image from left to right using animate function. 我可以使用动画功能从左到右成功显示图像。
Can someone show how to reveal from right to left. 有人可以显示如何从右向左显示。 What additional parameters need to used.
需要使用哪些其他参数。
Use jquery ui show() function 使用jQuery ui show()函数
$(document).ready(function() {
$('#nature').hide();
$('#animation').click(function() {
$('#nature').show('slide', {direction: 'right'},1000);
});
});
fiddle here http://jsfiddle.net/bJJ5s/6/ 在这里摆弄http://jsfiddle.net/bJJ5s/6/
Pretty sure this will work cross browser 相当确定这可以跨浏览器运行
#nature,
#nature img {
float:right;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.