- .rotate(@deg: 7deg){
- -webkit-transform: rotate(@deg);
- -moz-transform: rotate(@deg);
- -o-transform: rotate(@deg);
- transform: rotate(@deg);
- }
- .box-shadow (@x: 0, @y: 0, @blur: 1px, @alpha) {
- @val: @x @y @blur rgba(0, 0, 0, @alpha);
- box-shadow: @val;
- -webkit-box-shadow: @val;
- -moz-box-shadow: @val;
- }
- .transition(@property, @duration, @effect){
- @val: @property @duration @effect;
- -webkit-transition: @val;
- -moz-transition: @val;
- -o-transition: @val;
- transition: @val;
- }
- .scale(@mod){
- -moz-transform: scale(@mod);
- -webkit-transform: scale(@mod);
- -o-transform: scale(@mod);
- transform: scale(@mod);
- }
- .rotate-and-scale(@deg,@mod){
- -moz-transform: scale(@mod) rotate(@deg);
- -webkit-transform: scale(@mod) rotate(@deg);
- -o-transform: scale(@mod) rotate(@deg);
- transform: scale(@mod) rotate(@deg);
- }
- .border-radius(@rad){
- -moz-border-radius: @rad;
- -webkit-border-radius: @rad;
- border-radius: @rad;
- }
This snippet works with LESS CSS, a dynamic extension of CSS writing. Learn to save more time and focus on development with LESS CSS.





Give your comments about this article