CSS3 rotate a div on hover transition – CSS3 transition

In this tutorial I will show you how to rotoate a div with few lines of html and some css3 transitions. The easiest way to rotate a div when you hover on his parent, is to put it with absolute position inside his parent, then when you hover you can do anything you want with… Continue reading CSS3 rotate a div on hover transition – CSS3 transition

Full background on hover transition – CSS animations

Some css animations on you website can make your website more beautiful especially if you add animations as needed. Let’s assume we have a list of items on our page, when you hover on them we want to add a background. Our animation will start from the middle to the edges. This task can be… Continue reading Full background on hover transition – CSS animations

How to animate a SVG – SVG animation

There are few ways to animate a svg. The easiest way to animate a svg is with css. So, the first thing we will do is build the svg, then we will create a keyframe to animate the way how the svg is writed. <svg width=”200″ height=”160″ xmlns=”http://www.w3.org/2000/svg”> <path class=”path” d=”M10 70 L 70 70,… Continue reading How to animate a SVG – SVG animation

How to change class jquery – toggleClass jQuery

In the last post we learnt how to add a class by jquery. Now we will add a class on first click, then on the second we will remove the class. To accomplish this the first we have to do load up the jquery library, we learnt this in the addClass jquery tutorial then we will… Continue reading How to change class jquery – toggleClass jQuery

How to addclass jquery – javascript add class

For a frontend programmers is vital to know how to add a class on click, or when document is ready. There is nothing complicated in adding a class when an element is clicked. Here we will learn all necesary steps to add a class. The first thing we have to do is load up the… Continue reading How to addclass jquery – javascript add class

Vertical align css – DIV align center css

There are some ways to do that. The easies way to do this is to make the elements behave like a tabel, as you probably know when you work with tables if you declare on “td” – “vertical-align:middle”, all tds will be centered vertically, we can do the same on div structure. Let’s say we have two… Continue reading Vertical align css – DIV align center css

How to create jquery countdown timer – Javascript Countdown Timer

To create this countdown we will use this plugin. The Final Countdown is a plugin tailored to be used in any layout, without any CSS/HTML dependency. The goal was to fit and mimic differents countdown styles as you see out there in coupons and auction sites.   Is very easy to setup this plugin. HTML:… Continue reading How to create jquery countdown timer – Javascript Countdown Timer

Direction Aware effect CSS – jQuery animation gallery implementation

How to create an aware direction hover effect with css and javascript. The following code will create a nice hover effect when you put the cursor on the gallery thumbnail. To achieve this effect you need an overlay which will stay in the top left corner, when the cursor will go inside the thumbnail, we… Continue reading Direction Aware effect CSS – jQuery animation gallery implementation

Custom Codeigniter Ion Auth Password Strength Validation

Even if Ion auth has enough validation rules for form inputs, sometimes you have to check if the password is strength enough.  One of the fastest way to achieve this functionality is the following check.   $password = $this->input->post(‘password’); if (!preg_match(‘([a-zA-Z].*[0-9]|[0-9].*[a-zA-Z])’, $password) ){ $errorMesasge = ‘Password is too weak.’; exit(json_encode(array(‘status’ => false, ‘message’ => $errorMesasge)));… Continue reading Custom Codeigniter Ion Auth Password Strength Validation

Ion Auth Password Strength Validation

Among options to validate the strength of password is also found this one. You can change the default settings for Ion Auth password strength validation from config.php. Digits Required For Password $config[‘min_digits_for_password’] = 1;     Lowercase Letters Required For Password $config[‘min_lowercase_chars_for_password’] = 1;     Uppercase Letters Required For Password $config[‘min_uppercase_chars_for_password’] = 1;  … Continue reading Ion Auth Password Strength Validation