I'm trying to make an animation (With a SVG Path) on a textarea:
I have two div :
Svg :
<svg class="graph" width="400px" heigth="100px" viewBox="0 0 400 100" preserveAspectRatio="none">
<path d="m0,0l400,0l0,100l-400,0l0,-100z" />
</svg>
Textarea :
<textarea placeholder="message"></textarea>
I'm trying to superpose the two element (svg element below the textarea). The svg will be the border of the textarea.
Here is the codepen of the two element working separately : http://codepen.io/Dipiks/pen/ogMErr
The SVG react on hover.
You may just use backgrounds and animate them :
or inside a codepen (with auto prefix) to play with