Пример анимации справа налево без jQuery UI , только с jQuery (любая версия, см. https://api.jquery.com/animate/ ).
$(document).ready(function() {
var contentLastMarginLeft = 0;
$(".wrap").click(function() {
var box = $(".content");
var newValue = contentLastMarginLeft;
contentLastMarginLeft = box.css("margin-left");
box.animate({
"margin-left": newValue
}, 500);
});
});
.wrap {
background-color: #999;
width: 200px;
overflow: hidden;
}
.content {
width: 100%;
margin-left: 100%;
background-color: #eee;
}
click here
I would like to have a div go from collapsed to expanded (and vice versa), but do so from right to left. Most everything I see out there is always left to right.
Если я не ошибаюсь, emacspeak имеет приятный интерфейс с такими службами Google, как blogger, фотоальбом Picasa и т. Д., Что, вероятно, хорошо для любого emacsen.