Hello i would like to add a class for a border of a image (for animated gradient colors)
i put a 5px top border and add transparent color :
and targeted this class and add animated gradient :
.mak-p.x-cell {
background: linear-gradient(90deg, #75c2d3, #d375d2, #ef7b45, #ffd151, #70b77e);
background-size: 1000% 1000%;
-webkit-animation: AnimationName 57s ease infinite;
-moz-animation: AnimationName 57s ease infinite;
-o-animation: AnimationName 57s ease infinite;
animation: AnimationName 57s ease infinite;
}
@-webkit-keyframes AnimationName {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
@-moz-keyframes AnimationName {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
@-o-keyframes AnimationName {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
@keyframes AnimationName {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
It works fine exept it add also a bottom border :
How to get only top-border gradient colored border ?