CSS Load.net - Loading CSS spinners and bars generator for AJAX & JQuery. Timed Notifications with CSS Animations. A quick tip on how to create some simple timed notifications with CSS animations. The idea is to show a notification with a progress bar for a specific duration and then make it disappear. View demo Download source In today’s tip we’ll show you how to create a simple timed notification with CSS animations. The idea is to show a notification or alert for a specific duration and then make it disappear. You definitely saw it already somewhere, I discovered it on buysellads.com where timed notifications are shown i.e. after saving some settings.
For the markup we’ll simply have a division with a message inside and with an additional division for the little progress bar: The notification box is going to have the classes tn-box and tn-box-color-1 which will be used for defining different colors. Then we define the style of the box: We’ll set the box to display: none and give it 0 opacity. The progress bar will have the following style: Initially, the bar will have 0 width.
And that’s all! Bare Naked App » Displaying percentages. In Amigo we’ve got percentage bars! This was the image that Jason came up with: In turning this part of the design into something flexible on the website I saw two options; clever CSS, or ‘Lots of Images’. I decided that ‘Lots of Images’ was a bad idea: If they were generated in PHP you’ve got that extra overhead For each percentage bar you’d need to download another image - extra bandwidth & slower for the user Could get difficult for a designer to update (and, it’s an image after all) … so clever CSS it is. The Code Okay, it’s not really that clever, it’s CSS not rocket science. Img.percentImage { background: white url(/images/percentImage_back.png) top left no-repeat; padding: 0; margin: 5px 0 0 0; background-position: 1px 0; If you understand XHTML/CSS, you’ll see there’s two images involved.
The second image is the bar’s color, split into two halves. What’s it doing The inline style handles what pecentage we want to display in the box by changing the position of the background-image. 1f84. Some styles for your pagination. Loading CSS spinners and bars generator for AJAX & JQuery. CSS3 Loading Animation. CSS3 Loading Animation Loop. Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: localhost:27017: Connection refused' in /var/www/cssdeck.com/app/modules/labs/models/PastebinM.php:281 Stack trace: #0 /var/www/cssdeck.com/app/modules/labs/models/PastebinM.php(281): MongoClient->__construct() #1 /var/www/cssdeck.com/app/modules/labs/controllers/HomeC.php(52): PastebinM->get('css3-loading-an...') #2 [internal function]: HomeC->index('css3-loading-an...') #3 /var/www/cssdeck.com/libs/lite/core/Router.php(332): call_user_func_array(Array, Array) #4 /var/www/cssdeck.com/libs/lite/core/Router.php(185): lite\core\Router->dispatch(Array) #5 /var/www/cssdeck.com/libs/lite/core/Bootstrap.php(100): lite\core\Router->dispatchRequest(Array) #6 /var/www/cssdeck.com/public/index.php(41): require('/var/www/cssdec...') #7 {main} thrown in /var/www/cssdeck.com/app/modules/labs/models/PastebinM.php on line 281.
jQuery Pagination - jPaginate.