Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
##Description A jQuery plugin that outputs text like it's being typed. It allows you to type single strings, multiple strings that stack, and multiple strings that delete & replace each other.
##Demo Checkout the demo page at alexmacarthur.github.io/typeit.
##Setup
<span class="type-it"></span>
<link rel="stylesheet" type="text/css" href="typeit.css">
<script src="jquery-2.1.4.min.js"></script>
<script src="typeit.js"></script>
You're ready to initialize it!
##Usage
You can modify the options for the plugin in two different ways -- either by inserting them directly into the function call, or by using data attributes.
<span class="type-it"
data-typeit-whattotype="A new string to type."
data-typeit-speed="100"
data-typeit-lifelike="true"
data-typeit-showcursor="true">
</span>
$('.type-it').typeit();
or...
<span class="type-it"></span>
$('.type-it').typeit({
whatToType:'Enter your string here!',
typeSpeed: 300,
lifeLike: false,
showCursor: true
});
Aside from simply typing a single string, you can configure TypeIt to type multiple strings. By default, they stack on top of each other. To use this feature, just enter an array of several strings.
$('.type-it').typeit({ whatToType:['Enter your string here!', 'Another string!'] });
Or, you can have type strings that delete & replace each other. Do this, set the 'breakLines' setting to false
.
$('.type-it').typeit({ whatToType: ['Enter your string here!', 'Another string!'], breakLines: false });
##Options
There are a number of options you may use to customize typeIt.
Option | Description | Default Value |
---|---|---|
whatToType | The string to be typed. | 'This is the default string. Please replace this string with your own.' |
typeSpeed | The typing speed. | 500 |
lifeLike | Will make the typing pace irregular, as if a real person is doing it. | true |
showCursor | Show a blinking cursor at the end of the string. | true |
breakLines | Choose whether you want multiple strings to be printed on top of eachother (breakLines = true), or if you want each string to be deleted and replaced by the next one (breakLines = false). | true |
breakWait | The amount of time between typing multiple strings. | 500 |
delayStart | The amount of time before the plugin begins typing after initalizing. | 100 |
##Ideas for Improvement?
If you choose to develop it locally, Gulp is configured to check & minify JavaScript and compile & compress SASS. In the root of the repo, use these commands to run these default tasks and watch for file changes (make sure Node.js and Gulp are installed on your computer):
npm install
gulp
FAQs
The most versatile animated typing utility on the planet.
The npm package typeit receives a total of 8,396 weekly downloads. As such, typeit popularity was classified as popular.
We found that typeit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.