हैलो सब मैंने svg का उपयोग करके एक सर्कल खींचा है। इस सर्कल में एक होवर effe है, मैं सर्कल में और लिंक टेक्स्ट के लिए होवर प्रभाव के साथ रंग बदलने के लिए एक लिंक जोड़ना चाहता हूं। कृपया नीचे दिए गए कोड को ढूंढें, मैं सहायता की सराहना करता हूं।एक एसवीजी सर्कल के अंदर एक लिंक कैसे जोड़ें
एचटीएमएल
<svg id="circle">
<circle cx="125" cy="125" r="100" stroke="darkblue" stroke-width="3" fill="green" />
</svg>
सीएसएस
svg#circle {
height: 250px;
width: 250px;
}
circle {
stroke-dasharray: 700;
stroke-dashoffset: 700;
stroke-linecap: butt;
-webkit-transition: all 2s ease-out;
-moz-transition: all 2s ease-out;
-ms-transition: all 2s ease-out;
-o-transition: all 2s ease-out;
transition: all 2s ease-out;
}
circle:hover {
fill: pink;
stroke-dashoffset: 0;
stroke-dasharray: 700;
stroke-width: 10;
}
जोड़ने के बारे में वास्तविक सवाल बहुत आसान है उत्तर (नीचे के रूप में), लेकिन इसका उपयोग एनिमेटेड स्ट्रोक-डैश संक्रमण बहुत चालाक है और एक अपवर्तनीय हकदार है :) – brichins