2014-12-11 2 views
0

타이핑 효과를 위해 typed.js 플러그인을 사용하고 있습니다. 두 줄이 있는데 첫 줄 끝나고 두번째 줄에서 시작하고 싶습니다. 이것은 제가 시도한 것입니다. 문제는 두 번째 줄로 바뀌면
태그가 입력 된 것을 간략하게 볼 수 있습니다. 나는 이것을 원하지 않는다. 내가 뭘 잘못하고 있는지 말해줘. 또한 처음의 콜백에 입력 함수를 호출 시도했지만 일 :(아래두 줄 이상의 Typed.js

가 일부러 내 코드

<html lang="en"> 
<head> 
    <meta charset="UTF-8"> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
    <script src="typed.js"></script> 
    <title>Typed.js</title> 

<style> 
    .test { 
     font-size: 30px; 
    } 

    </style> 
</head> 
<body> 
    <span class="box1"></span> 
    <span class="box2"></span> 

<script> 
    $(function(){ 

     $(".box1").typed({ 
      strings: ["First sentence.", "<p></p><span class='test'>Second sentence.</span>",""], 
      typeSpeed: 0, 
      showCursor: false, 

     }); 
    }); 
    </script> 
</body> 
</html> 

내가 잘못

답변

0

당신의 contentType을 추가 시도해 봤어 뭐하는 거지 알려주세요 속성?

$(".box1").typed({ 
     strings: ["First sentence.", "<p></p><span class='test'>Second sentence.</span>",""], 
     typeSpeed: 0, 
     showCursor: false, 
     contentType: 'html' 
}); 
+0

기본적으로 html :-( – Amer

관련 문제