A super tiny sticky alerts plugin
This pen from Thommy Browne caught my eye. The sticky alert bar was made with some very simple jquery and a bit of CSS.
So, if nothing else, this was simply an exercise in creating a jQuery plugin.
Using the plugin is extremely easy. Just define the container you want the alert to sit in, make sure jQuery and
jquery.stickyalerts.css) is loaded, define some options, and you’re set!
You can see usage instructions at the GitHub project page. Below are the options in use on the demo page:
barText:'Hey, need some web work done? Give me a shout!',
I’m new to building jQuery plugins, so let me know if I’ve made any errors or if you see anything I could be doing better (I want to learn!!). You can leave a comment on this post or create an issue at GitHub. Pull requests are also welcome!
If you decide to use Sticky Alerts in a project, I’d love to know about it! Just drop a link in the comments.
Well, what now?
Think you'd need help getting somethink like this setup on your own? Or maybe you've got an idea for a product but don't know how to turn it into 'something'. I can help on both fronts! Just get in touch and we can chat about your needs.