novacancy.js is a text neon golden effect jQuery plugin. Now with a pure Vanilla JavaScript version!
$('#no').novacancy({ 'reblinkProbability': 0.1, 'blinkMin': 0.2, 'blinkMax': 0.6, 'loopMin': 8, 'loopMax': 10, 'color': '#ffffff', 'glow': ['0 0 80px #ffffff', '0 0 30px #008000', '0 0 6px #0000ff'], 'off': 1, 'blink': 1, 'classOn': 'on', 'classOff': 'off', 'element': 'data', 'autoOn': true });
$('#no').trigger('blinkOn');
$('#no').trigger('blinkOff');Vanilla JavaScript Version (No jQuery Required)
Want to use this effect without jQuery? We've got you covered with a pure JavaScript version!
initNovacancy('#no', {});
initNovacancy('#no', { 'reblinkProbability': 0.1, 'blinkMin': 0.2, 'blinkMax': 0.6, 'loopMin': 8, 'loopMax': 10, 'color': '#ffffff', 'glow': ['0 0 80px #ffffff', '0 0 30px #008000', '0 0 6px #0000ff'], 'off': 1, 'blink': 1, 'classOn': 'on', 'classOff': 'off', 'element': 'span', // 'data' is not a valid interactive element, use 'span' instead 'autoOn': true });
document.getElementById('no').dispatchEvent(new CustomEvent('blinkOn'));
document.getElementById('no').dispatchEvent(new CustomEvent('blinkOff'));
The vanilla version returns an array of Novacancy instances, allowing more control:
// Initialize and store instances const instances = initNovacancy('.neon-text', options); // Update options after initialization instances[0].setOptions({ 'color': 'GREEN', 'glow': ['0 0 80px GREEN', '0 0 30px LIME', '0 0 6px #AAFF00'] }); // Clean up resources when no longer needed instances[0].destroy();
Hexadecimal: '#ffffff' RGB: 'rgb(255,255,255)' RGBA: 'rgba(255,255,255,1)' Text: 'WHITE'
demo.html
- Original jQuery version demodemo.vanilla.html
- Vanilla JavaScript version demojavascript/jquery.novacancy.js
- Original jQuery pluginjavascript/jquery.novacancy.min.js
- Minified jQuery pluginnovacancy.vanilla.js
- Vanilla JavaScript version (no jQuery required)Copyright (c) 2018 Chuck Chang Licensed under the MIT license
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4