Плавный выход текста - Visavi.net https://visavi.net/ RSS - Visavi.net https://visavi.net/assets/img/images/logo_small.png RSS - Visavi.net https://visavi.net/ [email protected] (admin) [email protected] (admin) Sat, 18 May 2024 22:53:25 +0300 Всё равно какие то глюки присутствуют...<br> <br> <em><span style="font-size:x-small">Добавлено через 05:46 сек.</span></em><br> это наверно из за торможения stop текста https://visavi.net/topics/39732/654402 Плавный выход текста YouMobe Wed, 25 Dec 2013 09:06:54 +0400 Messages https://visavi.net/topics/39732/654402 Конечно, где мой профит? https://visavi.net/topics/39732/654138 Плавный выход текста Александр Fri, 20 Dec 2013 15:39:53 +0400 Messages https://visavi.net/topics/39732/654138 хм.. дёргается всё равно, вот смотри lifecms.ru на главную зайди https://visavi.net/topics/39732/654137 Плавный выход текста YouMobe Fri, 20 Dec 2013 15:21:56 +0400 Messages https://visavi.net/topics/39732/654137 <pre class="prettyprint"> $(function() { //cache the ticker var ticker = $(&quot;#ticker&quot;); //wrap dt&#58;dd pairs in divs ticker.children().filter(&quot;dt&quot;).each(function() { var dt = $(this), container = $(&quot;&lt;div&gt;&quot;); dt.next().appendTo(container); dt.prependTo(container); container.appendTo(ticker); }); //hide the scrollbar ticker.css(&quot;overflow&quot;, &quot;hidden&quot;); //animator function function animator(currentItem) { // PROFIT! $(&quot;#ticker&quot;).children(&quot;&#58;first&quot;).fadeTo(2000, 0); //work out new anim duration var distance = currentItem.height(); duration = (distance + parseInt(currentItem.css(&quot;marginTop&quot;))) / 0.025; //animate the first child of the ticker currentItem.animate({ marginTop&#58; -distance}, duration, &quot;linear&quot;, function() { // PROFIT! currentItem.fadeTo(1000, 1); //move current item to the bottom currentItem.appendTo(currentItem.parent()).css(&quot;marginTop&quot;, 0); //recurse animator(currentItem.parent().children(&quot;&#58;first&quot;)); }); }; //start the ticker animator(ticker.children(&quot;&#58;first&quot;)); //set mouseenter ticker.mouseenter(function() { // PROFIT! ticker.children().css(&quot;opacity&quot;, 1); //stop current animation ticker.children().stop(true); }); //set mouseleave ticker.mouseleave(function() { //resume animation animator(ticker.children(&quot;&#58;first&quot;)); }); }); </pre> вот поправил https://visavi.net/topics/39732/654133 Плавный выход текста Александр Fri, 20 Dec 2013 14:19:02 +0400 Messages https://visavi.net/topics/39732/654133 Я спать лег потом) Есть недочеты там. Первый блок также пропадае при анимациит. Надо тоже пофиксить) https://visavi.net/topics/39732/654130 Плавный выход текста Александр Fri, 20 Dec 2013 14:02:01 +0400 Messages https://visavi.net/topics/39732/654130 круто, исчезновение тоже плавное сделаешь?))<br> <br> <em><span style="font-size:x-small">Добавлено через 00:35 сек.</span></em><br> 6. Пока нет балов, не забуду +) https://visavi.net/topics/39732/654123 Плавный выход текста YouMobe Fri, 20 Dec 2013 08:12:20 +0400 Messages https://visavi.net/topics/39732/654123 Нет ничего не возможного) С тебя печенька<br> <pre class="prettyprint"> $(function() { //cache the ticker var ticker = $(&quot;#ticker&quot;); //wrap dt&#58;dd pairs in divs ticker.children().filter(&quot;dt&quot;).each(function() { var dt = $(this), container = $(&quot;&lt;div&gt;&quot;); dt.next().appendTo(container); dt.prependTo(container); container.appendTo(ticker); }); //hide the scrollbar ticker.css(&quot;overflow&quot;, &quot;hidden&quot;); //animator function function animator(currentItem) { // PROFIT! currentItem.css(&quot;opacity&quot;, 0); //work out new anim duration var distance = currentItem.height(); duration = (distance + parseInt(currentItem.css(&quot;marginTop&quot;))) / 0.025; //animate the first child of the ticker currentItem.animate({ marginTop&#58; -distance}, duration, &quot;linear&quot;, function() { // PROFIT! currentItem.fadeTo(2000, 1); //move current item to the bottom currentItem.appendTo(currentItem.parent()).css(&quot;marginTop&quot;, 0); //recurse animator(currentItem.parent().children(&quot;&#58;first&quot;)); }); }; //start the ticker animator(ticker.children(&quot;&#58;first&quot;)); //set mouseenter ticker.mouseenter(function() { // PROFIT! ticker.children(&quot;&#58;last&quot;).css(&quot;opacity&quot;, 1); //stop current animation ticker.children().stop(); }); //set mouseleave ticker.mouseleave(function() { //resume animation animator(ticker.children(&quot;&#58;first&quot;)); }); }); </pre> https://visavi.net/topics/39732/654118 Плавный выход текста Александр Fri, 20 Dec 2013 02:40:39 +0400 Messages https://visavi.net/topics/39732/654118 по ходу не получиться(( https://visavi.net/topics/39732/654107 Плавный выход текста YouMobe Thu, 19 Dec 2013 23:57:41 +0400 Messages https://visavi.net/topics/39732/654107 вот пример, <a href="http://boltun.mobi/," target="_blank" rel="nofollow">http://boltun.mobi/,</a> заметили как текст резко появляется, как придать плавность? https://visavi.net/topics/39732/654105 Плавный выход текста YouMobe Thu, 19 Dec 2013 22:55:50 +0400 Messages https://visavi.net/topics/39732/654105 Для выхода блока есть же slide вроде <a href="http://api.jquery.com/slideDown/" target="_blank" rel="nofollow">api</a> https://visavi.net/topics/39732/654092 Плавный выход текста Александр Thu, 19 Dec 2013 20:18:25 +0400 Messages https://visavi.net/topics/39732/654092 Перед текстом вставляешь <pre class="prettyprint">&lt;marquee direction=&quot;up&quot; scrollamount=&quot;1&quot; scrolldelay=&quot;20&quot; onmouseover=&quot;this.stop()&quot; onmouseout=&quot;this.start()&quot; height=&quot;220&quot;&gt;&lt;br&gt;</pre> а после теста, в последней строке, закрываем <pre class="prettyprint">&lt;/marquee&gt;</pre> С цифрой 220 можешь поэспериментировать https://visavi.net/topics/39732/654083 Плавный выход текста Снежана Ночева Thu, 19 Dec 2013 18:25:20 +0400 Messages https://visavi.net/topics/39732/654083 Этот код осуществляет выход текста вверх, до указанной высоты и ширины, выход текста резкий, хочу придать плавность при появлении текста, как сделать это?<br> <pre class="prettyprint"> $(function() { //cache the ticker var ticker = $(&quot;#ticker&quot;); //wrap dt&#58;dd pairs in divs ticker.children().filter(&quot;dt&quot;).each(function() { var dt = $(this), container = $(&quot;&lt;div&gt;&quot;); dt.next().appendTo(container); dt.prependTo(container); container.appendTo(ticker); }); //hide the scrollbar ticker.css(&quot;overflow&quot;, &quot;hidden&quot;); //animator function function animator(currentItem) { //work out new anim duration var distance = currentItem.height(); duration = (distance + parseInt(currentItem.css(&quot;marginTop&quot;))) / 0.025; //animate the first child of the ticker currentItem.animate({ marginTop&#58; -distance }, duration, &quot;linear&quot;, function() { //move current item to the bottom currentItem.appendTo(currentItem.parent()).css(&quot;marginTop&quot;, 0); //recurse animator(currentItem.parent().children(&quot;&#58;first&quot;)); }); }; //start the ticker animator(ticker.children(&quot;&#58;first&quot;)); //set mouseenter ticker.mouseenter(function() { //stop current animation ticker.children().stop(); }); //set mouseleave ticker.mouseleave(function() { //resume animation animator(ticker.children(&quot;&#58;first&quot;)); }); }); </pre> https://visavi.net/topics/39732/654061 Плавный выход текста YouMobe Thu, 19 Dec 2013 10:45:09 +0400 Messages https://visavi.net/topics/39732/654061