We can create various effect with CSS. We can add new design style to the menu by using ribbons created using CSS. This artciel explains about two effects created using CSS
1. Stitch Effect
2. 3D Ribbon Effect
Following is the HTML used for creating effects:
There is one class used in above HTML "stitched".
1. stitch Effect:
Stitch effect can be created using CSS box-shadow and border style.
To get the stitched effect keep the border style to dashed and use the box-shadow with x=0 y=0 and blur to zero as well.
Following is the effect created using the above class:
2. Ribbon Effect:
Ribbon effect can be created using :after and :before pseudo elements.
Following is the arrow created using :after class:
Following is the class used to create the arrow shown in the above image.
Following is the arrow created using :before class:
Following is the class used to create the arrow shown in the above image.
Following is the final effect created using .stitched , .stitched:after and .stitched:before.
Following is the Final code for the Stitched ribbon:
Following is another example for ribbon with stitched effect:
1. Stitch Effect
2. 3D Ribbon Effect
Following is the HTML used for creating effects:
There is one class used in above HTML "stitched".
1. stitch Effect:
Stitch effect can be created using CSS box-shadow and border style.
To get the stitched effect keep the border style to dashed and use the box-shadow with x=0 y=0 and blur to zero as well.
Following is the effect created using the above class:
Ribbon effect can be created using :after and :before pseudo elements.
Following is the arrow created using :after class:
Following is the class used to create the arrow shown in the above image.
Following is the arrow created using :before class:
Following is the class used to create the arrow shown in the above image.
Following is the final effect created using .stitched , .stitched:after and .stitched:before.
Following is the Final code for the Stitched ribbon:
Following is another example for ribbon with stitched effect:
No comments:
Post a Comment