Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="js/jquery-1.11.1.min.js"></script>
- <script src="plugins/typing/typed.js" type="text/javascript"></script>
- <script>
- $(function(){
- console.log("test");
- $("#typed").typed({
- strings: ["Typed.js is a jQuery plugin.", "It types out sentences.", "And then deletes them.", "Try it out!"],
- typeSpeed: 30,
- backDelay: 500,
- loop: false,
- // defaults to false for infinite loop
- loopCount: false,
- callback: function(){ foo(); },
- resetCallback: function() { newTyped(); }
- });
- $(".reset").click(function(){
- $("#typed").typed('reset');
- });
- });
- function newTyped(){ /* A new typed object */ }
- function foo(){ console.log("Callback"); }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement