Answer the question
In order to leave comments, you need to log in
How to curve input?
There is input type=text
It's straight forward. Standard white stick
I would like to make a curved stick, a poker out of this stick
Answer the question
In order to leave comments, you need to log in
I would like to make a curved stick out of this stick
<script language="JavaScript">
function setMyTextValue() {
myTextValue = "bla-bla-bla";
}
</script>
<form>
<input type="hidden" name="myTextValue" />
<svg onChange="setMyTextValue()">
</form>
Unfortunately, you can’t bend the input itself, if you need the functionality of the input, try this crutch - add SVG in place of the input as suggested in other answers, put the input next to for example.
hang a click handler on the SVG, in which, on clicking on the image, move the focus to input . And on the input, hang a handler on the "input" event in which you change the contents of the text string in SVG{display:none}
svg.querySelector("здесь_селектор_текстового_элемента").innerHTML = input.value;
1. www.olivermusebrink.de/beta/curvedtext
2. https://github.com/codrops/Arctext
3. https://circletype.labwire.ca/
4. https://css-tricks.com/snippets/ svg/curved-text-al...
5. https://www.visualcinnamon.com/2015/09/placing-tex...
BONUS: roundsliderui.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question