Software Archive
Read-only legacy content
17061 Discussions

SVG and external style sheet!

Thomas_V_1
Beginner
506 Views

Hi, is svg with external style sheets supported by XDK? I am trying to get this example working: http://codepen.io/chriscoyier/pen/evcBu

This example use hover but I want to use active. Any ideas?

Thanks.

0 Kudos
4 Replies
Thomas_V_1
Beginner
506 Views

I want to trig it from another div so I can not do it internally. 

0 Kudos
PaulF_IntelCorp
Employee
506 Views

Sorry, not familiar with using SVG in a Cordova app (the XDK creates Cordova apps). I would search Stack Overflow for Cordova apps and SVG to figure this out.

0 Kudos
Swati_S_Intel1
Employee
506 Views

Most recent android and iOS webviews support SVG.  So, your example should work fine. XDK just packages your HTML/javascript code and your app is invoked in a webview on the device. The example code works fine on the App Preview. You can change your css to use for hover or active. If you want to change upon clicking, you can use onclick event in javascript.

0 Kudos
Thomas_V_1
Beginner
506 Views

Thanks

0 Kudos
Reply