Search
Falling Stars CSS Animation
falling stars css animation See the Pen Falling Stars by Prasenjit Nayak (@StarKnightt) on CodePen.
Animated Triangles on Canvas JS HTML
Cool looking triangles animation using just canvas and js. Explanation of Code The code starts with the statement 'use strict'; which enables strict mode, a way to introduce better error..
Instant colour fill with HTML Canvas
Nice site with coloring images art and no ad's. Nice to just draw and color. https://www.kidzfun.art/ Demo is at https://shaneosullivan.github.io/example-canvas-fill/ , code is at..
Fancy Border Radius CSS Generator Tool - spin animation keyframes
Tool to generate custom border radius. you too can create blob like objects. How to use Just generate your border radius, and then copy the following code into a new or existing element. ..
CSS Drop Filter Shadow Creator
This page generates a nice css drop filter shadow with lots of options to change the shadow width and height and other various useful drop shadow settings. What does it do? It generates code l..
A CSS and HTML Only Carousel Slider
Why is it that sliders and carousels need a bunch of javascript and other css files to get them working? I have seen so many complex sliders with a lot of javascript and libraries that may not even b..
Z-Index Code Front - CSS to change z-index when element is active
If you have 2 elements and they over lap and then you add a click event then it can become complex. So this script adds some z-index changing order to bring the active dot to the front. Mouse over the..
section with image to the right text to the left gradient
section with image to the right and text to the left, can be a block on a landing page, easy find and replace the section names with new names to create new class section items. Preview - Full ..
Two Clickable Logo Promo Box Section Foundation
Just a quick clickable two box section with some logos and radial backgrounds, foundation for grid and responsive action. Quick demo:
Inline Contact Form Formatting
Responsive inline contact form generic block, replace with your form code and submit, google recapture etc. Usually used on home page or near footer of page. Stacks the form on mobile screens. ..
Overview full width section in Poppins font with light gray background using foundation
Quick overview full width section code. Lightgray and teal colours on white background.
Map Image with Easy Dots and Titles using only CSS
I had to quickly add some dot points with names to a map the other day, so i thought i should probably look for a jquery library for tool tips or something similar. But then i thought why not just add..
Social Header Links easy Drop in Code with Font Awesome Icons
Drop in this code in the header of your site to quickly add some social links in your header. Social Icons in Header This version uses foundation for the grid system. But you can swap this grid..
Responsive Friendly Subscribe to our Newsletter Section
Just a nice quick section layout for a newsletter subscribe button and text. You could add this to a home page or just before the footer section of a page. Its also done in foundation gr..
Create a button with CSS, HTML and Center it!
A nice quick video on how to create a button with css and center it. Going from a blank html page into a div element with a button in it and then centering the button and giving it some life wi..
Truncate Text to an amount of lines using line-clamp
In a previous post (Truncate your Text with CSS) we truncated some text into a smaller single line element, which can be good for single line items, but what if you had a paragraph or a box of text th..
Item Positioning in CSS
I was just adding the previous post on how to draw a circle in css, when i thought it might also be useful to know how to move these items around. To make more complicated layouts or drawings. ..
Draw a Circle in CSS
Sometimes you need to go back to the basics. Here we have two nice circle's drawn with css. You can see how we do this below. How do you draw a circle with css? Add a div element with the cl..
Magical Text Effect
Add some sparkles to your text. Add some stars and rainbow colour effects to your text, source linked below.
Bootstrap 4.2 Kitchen Sink
Here is the full (almost full) collection of bootstrap elements in this kitchen sink code for bootstrap. Thanks to ycohio for this useful reference.
Make your site look like windows 7
How can i make my website look like Windows 7? You can just add the Windows 7 CSS Framework to your site, and it will look like windows 7. Well almost like it, you will also have to add some custom c..
Fancy up your banner image hero sections using overlay gradients
What is banner image hero sections using overlay gradients? In this code i show how you can add elements to your existing banner images to add an overlay gradient, while still leaving the inner conte..
Floating Modal Message Fixed on the Bottom of the Screen
What is title? With the floating fixed modal code you can attach a message for your website users on the bottom right hand side of the screen. This message will stay over the top of the content due ..
Create a modal with only CSS
and HTML... What is Create a modal with only CSS? Usually when creating a modal you need to use a javascript library or some javascript to show and hide and create the modal element. The following ..
display items in a css grid
So i removed bootstrap and now the items in my post header look like this: and this: this was using the row and col format in bootstrap we can switch this to a css grid quite easily using..
Using the selection selector to change the default highlight color
What is the selection pseudo selector? You can target this pseudo element to change the highlight color of selected text within the element. What can i use the selection pseudo selector for? You ca..
Truncate your Text with CSS
If you have some text in a set width element you can use the following property to truncate the text with an ellipsis (...). You need is a fixed width element, and then some text that is wider than t..
Change your cursor into an Emoji Cursor or Image Cursor
You can use the following property to change the cursor on an element. The property we will be changing is cursor Preview of the Cursor States About the Cursor CSS Property The curso..
How to Center Everything or Anything with CSS
This will center vertically and horizontally inside another element. Well maybe not anything and everything, but selected elements, it will center single content in the element. Adding t..
Smooth Scrolling with just CSS
Did you know that you can add smooth scrolling to your page with one line of css? So what is the magic line? scroll-behavior: smooth; Yep thats all you have to add. Lets add a demo of scro..
Radial Glow under cursor on box hover over effect
What is Radial Glow under cursor on box hover over effect? This code will allow the targeted boxes to have a radial glow effect on mouse over, so when you move your pointer over the box or element th..
Using a filter drop shadow for transparent images
Filter Drop Shadow vs Box Shadow in CSS with examples Filter Drop Shadow in CSS The filter drop-shadow CSS property is used to add a drop shadow to an element. The drop-shadow is applied to the elem..
Pure CSS 3D Flipping Book with Animations
What is Pure CSS 3D Flipping Book? Pure CSS 3D Flipping Book is a pure CSS and HTML flipping book animation that you can use to display content in a virtual book format. Preview a preview of Pure C..
Create a checkerboard background pattern with CSS
How can you create a diamond checker board background in css and html? One way to create a diamond checkerboard background in CSS and HTML is to use the CSS3 property of "background-size." This prope..
button animations hover and fill animation
Why would i want to use animations on my buttons? Button animations can be used for a variety of reasons. They can be used to add aesthetic appeal to a website or web application, or to provide a vis..
button on focus swing animation
Creates a swing animation on focus. Use an appropriate transition to animate changes to the element. Use the :focus pseudo-class to apply an animation that uses ..
Animated Button Border when Active
What is it? A button with a top and bottom border, when you mouse over it the border extends to the width of the button. Preview a preview of Animated Button Border when Active What can i use this..
create a border with top triangle in css
Here is a quick css and html code that gives you an element with a triangle on the top left border. Looks a bit like a callout box. Preview
Single Element CSS Spinners
What is it? Single Element CSS Spinners is a collection of loading animations made in css only, so no need for images or svg or any additional items, just one element added to you html and styled in ..
CSS Shake - Shake up your elements
CSS Shake is a CSS library that allows you to shake your elements using css classes. Install <link rel="stylesheet" type="text/css" href="https://csshake.surge.sh/csshake.min.css"> El..
NES-style(8bit-like) CSS Framework
Make your site look retro and 8 bit like an old NEW console with NES.css Installation Add the following script to your webpage to include the nes style sheet. <link href="https://unpkg.com..
Why to use a CSS Reset?
What is a CSS Reset? A CSS reset is a statements usually at the top of your style sheet, to reset all the browser defaults so that you can start with a fresh style sheet. Why do i need a CSS R..
Front-End Checklist
The Front-End Checklist is an exhaustive list of all elements you need to have / to test before launching your website / HTML page to production. If you want to check your project for the best practi..
Font Awesome Icons
I have been using this awesome font library for so long now that i almos overlooked it as being such a stable web developer resource for an amazing set of icons and easy to add to your project. Wha..
Animate Stuff with Animate.css
What is Animate.css? Its a css only animation library, just add the css and the classes and your animation needs should be good to go. Preview a preview of Animate.css What can i use this fo..
Check Wave Click a Checkbox and Watch the Animation
What is Check Wave? Check a box and watch the wave animation. Preview a preview of Check Wave What can i use this for? I cant actually think of a use case for this animation, but it looks cool! ..
Cloudy spiral animation with CSS3
What is Cloudy spiral animation with CSS3? This is a nice animation that uses CSS3 to transform the <i> tag into an animated spiral. Preview a preview of Cloudy spiral animation with CSS3 Wh..
Toast Messages and Notifications Standalone Library no JQuery - notify.js
What is notify.js? This is a small standalone javascript library that allows you to attach toast type messages that appear in the top right corner of your display with selected messages. Previ..
CSS Typing Effect using just CSS
Here is a typing animation, the only issue with this one is you need to add in the number of steps depending on the amount of characters in your string. So the text in the class typing-demo wil..
A tiny, modern, responsive, 12-column grid system built using CSS Grid Layout
TB Grid - A tiny, modern, responsive, 12-column grid system built using CSS Grid Layout For less than 2kb of code this can handle your grid layouts.
Pure CSS Loading Spinner
If you are tired of using an animated gif or loading the whole font awesome library just to get an animated loader image then this is the css library for you. Just include the following CSS and..
A fresh new and super tiny CSS Reset
A nice and small CSS reset script using newer selector tags than some of the older reset scripts. Features This new CSS reset is using the new CSS features: The global CSS reset keywords, ‘..
CSS animation toolkit AnimXYZ for HTML React and Vue
What is AnimXYZ? AnimXYZ helps you create, customize, and compose animations for your website. Powered by CSS variables to allow a nearly limitless number of unique animations without writing a singl..
simple.css a nice simple and stylish framework replacement
What is simple.css? Simple CSS is a framework that you can just drop into your site, and it styles the actual html elements, so no class names are required for this out of the box, just add the scrip..
Add an Animated Gradient Border to any Element with CSS
Here is kinda a cool border gradient animated effect, spinning the background element using the rotate keyframes animation.
zoomist.js: Library for easy Image Zoom & Pan
What is zoomist.js? zoomist is a javascript library that adds some nice zoom controls to your selected image. Rather than popping out the image in a modal or some other kind of overlay it adds contro..
Keen-Slider the free library agnostic touch slider
What is Keen Slider? A Image slider or image carousel, or actually content slider that works without the dependency of JQuery or anyother base library, so it can run standalone. It also works well wi..
Deep Links to highlight and share text on any page
Deep Links allows you to highlight text on the page, and will generate a URL hash to allow that text highlight to be shared to another browser. Example Link: Link 1 Just highlight some of the ..
Rounded Card Design with Shadow Palette
What is it? a nice rounded card design with a hero image on top, description text, hero title, more links and a shared by text area. Preview a preview of Rounded Card Design with Shadow Palet..
Menu items with reveal swipe hover effect
Here is a nice scrolling animated reveal effect on mouse over for menu items. Preview
WCAG Responsive Accessible Menu Dropdown Library
What is WCAG Responsive Accessible Menu? Here we have a javascript library with css and html that produces a responsive and mobile compatible dropdown navigation system. When the screen size goes int..
Slider Show - a standalone object and image slider
What is Slider Show ? Slider Show is a standalone image carousel and slider. You can add text and images into each item and the number of the slide, and it will switch between them. This library..
The New CSS Reset
What is The New CSS Reset? I remeber the time when i used to use something like this to reset the browser CSS to nothing and then start building my styles. CSS *,html,body { margin:0; padding:0; bo..
How to Center or Centre everything in a Container
Traditionally it has been quite tricky the vertically and horizontally center an item in a container or div element. This has been made quite a bit more straight forward with the grid layout and the ..
Easy Cookie Consent Modal Popup Window
A lightweight & gdpr compliant cookie consent plugin written in plain javascript. An "all-in-one" solution which also allows you to write your cookie policy inside it without t..
Responsive Mobile Bootstrap 4 Animated Rounded Navbar
What is it? An Animated Bootstrap based navigation with font awesome icons What can i use this for? This navigation works on mobile and desktop browsers for a nice twist to your navigation needs.&n..
Neumorphic Analog Clock
Here is a working Neumorphic Analog Clock from here. Gif Example:
Drop Shadow Rotation on Card Element
What is it? A Card element with a rotating drop shadow animation with colour changes. What can i use this for? You could use this animation to add some character to your own elements. Conc..
A Collection of Button Hover Over Effects
What is it? A Large collection of buttons with hover over animations and styles. What can i use this for? You can use these to make the buttons on your website or web project more animated Concl..
Add hovering text to your href links
What is it? Here we have a script that adds a Click Me Text above your links when they are hovered over or active. What can i use this for? Showing some additional information when your links..
Amazing Stripe Website Gradient Animation
What is it? An animated background using javascript html and css to achieve. What can i use this for? You could use is on the background in your website, or maybe on a hero type image. ..
Annotorious - JavaScript image annotation library
Have you ever wanted to add some comments on an image but dont want to have those comments or text items actually added to the image? Well this is where the library Annotorious comes in. What does An..
Punica pure CSS Framework
Punica CSS is a clean, lightweight, responsive, modern and fully customizable (even class names) pure CSS Framework based on SASS/SCSS with multi-theme support. What is Punica? Pu..
Lightbox for Bootstrap 5
A pure JavaScript Bootstrap 5 lightbox that supports images, galleries, YouTube, Vimeo, and Instagram—built around Bootstrap's Modal and Carousel plugins. Have you been using Lightbox for ..
Vertical Timeline in CSS and HTML Only no javascript
Description This is a vertical timeline with alternating left and right items, crossing over with the date and the time line item. The great thing about this timeline is that it does not require any ..
Sun Reflection CSS and HTML Only
What is Sun Reflection CSS and HTML Only? This is a sun with an animated reflection done using css and html only What can i use this for? This could be modified to add some interest to a logo, or o..
Project Management Dashboard UI Elements
Very slick Project management dashboard, showing some amazing UI Elements. Features Dark and Light Mode Listing Modes, in grid vs list Client Messages Popout section This is all in pure h..
404 Lost in Space Animated
An interesting take on a 404 error not found page with a space theme.
Glass Effect using backdrop filter element in css
shows how you can add a frosted glass effect to your element using the backdrop-filter: blur(5px) i think the issue with backdrop filter is that is is not supported by a few browsers. Checking..
Sea Waves Ripple Effects 3D in HTML, CSS and Javascript
An example using three js to create some 3D waves simulation, its like looking at a lava lamp. Or one of those games from 10 years ago...
Ken Burns effect - pure css
a ken burns image effect with slow zoom in animations, you kind of look at this one and go, is that image actually moving, and yes, yes it is...
checkbox groups with icons that highlight when checked
Here we have a nice way to layout some checkboxes in group format, giving each checkbox an icon and also a title. A nice form layout for checkboxes. Also would be good for touch input. &..
Shiny Button Animation
This makes your button flash a bit to bring some attention to it. Runs an animation with overflow set to hidden on the button to achieve this. You can play around with the background on the :be..
Neumorphic UI Element Examples
Here is a very slick example of Neumorphic ui elements, with some active examples. Credits Codepen, Maria M. Muñoz
Image slider with multiple controls and mobile swipe control
A snazzy looking image and content slider, with some nice content animations. Using GSAP for the animations, no JQuery required for this slider.
CSS Waves Footer Styling or Hero Element
CSS and HTML only version of CSS Waves
re theming the bootstrap card into something more stylish
I was thinking that i would re style the following default bootstrap card into something that looks a bit different. The bootstrap card is very functional and great for layouts but its not the best lo..
Pure CSS Background Element not on Body
this is a re-usable version of the animated css background element, so you can add this somewhere else rather than the body tag on your page.
Pure CSS Gradient Background Animation
this animated background element can give your project a bit more life, with a nive subtle background gradient changing effect that cycles slowly between the selected colours.
Glassmorphism Creative Cloud App Redesign
A full ui for Creative Cloud redesigned in html css and javascript, amazing work by Aysenur Turk. It even has responsive views, dark and light mode, and the tabs are functional.
Profile Card Hover Effect
Nice zoom and move effect on profile mouse over.
CSS Goey footer red blotched gloopy footer animation
Here we have an interesting animation added to the bottom of the footer area making it look kinda like its on fire, or paint glooping up from it. Nice effect, not sure where i would use this one, but ..
Animated Tab Bar
A very stylish and animated tab bar navigation with reveal text once the icon is clicked. Demo of Menu Items being Activated Credits Designed by: Hoang NguyenAuthor: abxlfazlOriginal image:..
Text Morphing Animation SVG
Here is a nice text animation that could be used for a title, or home animated element. From the Author This pen cleverly utilizes SVG filters to create a "Morphing Text" effect. Essentially..
Card Form Design, Very Slick and Rounded
A very cool looking form design here also using vue.js. As you type in the details the animated card fills in. Also as you select each element it will show you on the demo card which one is sel..
Scroll Trigger Parallax Clouds Snow
Another example of smooth animations using GSAP and Scroll Trigger. Good for scroll page animations. I cant get this one working correctly in the demo code, you will need to check out the pen ..
Center Mode Carousel using GSAP
I am so excited about this carousel, it looks amazing! The 1st thing i thought when viewing this carousel, was wow, and the second thing i thought was what is GSAP. What is GSAP? Simply put, GSAP i..
Card Hover Interaction Examples
Do you have boxes on your home page that need some new interactions.. Well go no further than these shiney boxes! :) Thanks to Ryan Mulligan for this code pen. Slightly tweaked and compiled t..
Animation Buttons - satisfying neumorphic animation designs
Some very nice examples of button animations using the neumorphic style of design. Check out the original codepen here.
Slide on Mouse Hover Over Effect
a very funky mouse in and out transition to the link. hmm this breaks my demo, i will have to investigate this. So anyway i like this effect, but its not that useful to have all of your H1 l..
Parallax scroll animation
Found this awesome animation on codepen, link below, Not sure how re-usable it is, but wow!
Contact Form with Wide Hero Image using Responsive Block CSS and HTML
About this Content Block This is a piece i did a little while ago, but i will re-create it for this post Basically what we are creating here today is a wide and padded section of a home page with ..
CSS & Javascript implementation for multiselect html control
Description this multiselect html control allows the user to click on the dropdown and select multiple items out of this list. there is also a control that allows selection of all the items in the ..
animated social links on mouse over
some nice looking pop over social links for the corner of your site
Animated Parallax 404 Error Page
Found this awesome animated 404 error page on codepen the other day, crazily awesome animations on this one, just reload the demo page and you can see the animation as it loads in as well.
Vanilla JS Center Mode Carousel
Here we have a sliding center mode carousel gallery made with css & vanilla js. This carousel is good if you need to keep your content up front and in the middle of the display. It can handle ima..
adding some more padding to the card in content areas
i noticed that the content areas or the article areas are a bit close up to the margins making things look a bit cramped so i added the following media query css to pad it out a bit more. the query i..
adding a favicon to css bundle
I noticed as soon as i set this site up that it was missing a favicon. What is a favicon? Its this little icon up the top of the browser tab. see how there is a little globe icon on there, ..