Typed.js Gem
A ruby gem for typed.js plugin developed by Matt Boldt Typed.js is a jQuery plugin that types. Enter in any string, and watch it type at the speed you've set, backspace what it's typed, and begin a new sentence for however many strings you've set.
View the official Demo here View the demo on my website
Installation
Add this line to your application's Gemfile:
gem 'typedjs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install typedjs
Usage
To your application.js
file, add:
//= require typedjs
This is all you need to get going:
<script>
$(function(){
$(".element").typed({
strings: ["First sentence.", "Second sentence."],
typeSpeed: 0
});
});
</script>
...
<span class="element"></span>
Customizations
Visit the official typed.js repo for customizations and a more detailed usage guide.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/rahullakhaney/typedjs.
License
The gem is available as open source under the terms of the MIT License.