If I understand your question you want to animate the border-width of the element, maybe the border-top-width, but I don't think that will create the effect that you are looking for, increasing the border will only push the element as much as the border width gets set to, it won't look like if the element is being filled, you can animate a nested element that will cover the outer element, you can check this example to see what I'm saying