我有一个关于比例效应的快速问题...

我有一个试图完成的粗略动画。我有一个快速的fadein,然后列出元素在屏幕上缩放和淡出:

   jQuery("#page_content").fadeOut(2000, function() {
    jQuery("#intro_animation").slideDown(2500, function () {
      var delay_duration = 10;  

      jQuery("ul#intro_words > li").each(function(index) {
        jQuery(this).delay(delay_duration).hide("scale", {percent: 700, origin: 'center', fade: 'hide' }, 2000);
        delay_duration += 2000;
      });

      jQuery("#intro_animation").delay(delay_duration).slideUp(2500, function() {
        jQuery("#page_content").fadeIn(2000);
      });
    });
  });

我的问题在于对受影响的文本元素进行样式,使它们在右侧被截止。有谁知道可以阻止文本被切断的解决方案?

有帮助吗?

解决方案

我想我已经弄清楚了...它不是100%以100%的居中(更像99%),但似乎没有删除文本而起作用。

ul#intro_words > .ui-effects-wrapper > li {
    list-style-image: none;
    list-style-type: none;
    list-style-position: outside;
    margin: 0 auto;
    padding: 0 40px;
    text-indent: -20px;
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top