다음은 몇 가지 추가 작업이 필요하지만 잘 시작해야하는 예입니다.
http://jsfiddle.net/YbDq3/1/
jQuery를
$(document).ready(function() {
$('h1').css({top: 40, opacity: 0});
scrollWord();
});
function scrollWord() {
$('h1').last().animate({top: 7, opacity: 1}, 200, 'linear', function() {
$(this).animate({top: -20, opacity: 0}, 200, 'linear', function() {
$(this).css({top: 40, opacity: 0});
$('p').after($(this));
scrollWord();
});
});
}
CSS
h1 {font-size: inherit; padding: 0; display: inline-block; font-weight: normal; margin: 0 0 0 5px; position: absolute;}
p {margin: 0; padding: 0; display: inline-block;}
HTML
<p>This is some example</p><h1>Text</h1><h1>Text2</h1><h1>Text3</h1>
는 희망이 도움이!
내 문제에 대한 해결책을 찾았지만 여전히 간단한 jquery 코드가 아니며 두 개의 플러그인을 사용했고 플러그인을 사용하는 것을 좋아하지 않습니다. 상단의 최종 결과는 다음과 같습니다. http://dupovacemir.com/ –