I have the following Demo which works beautifully on my desktop. I hover the circle and it expands - yay!
However, the circle doesn't expand when tapping it on my iPad.
Is it possible to use some jQuery to "trigger" the expand on a single click on my tablet?
I am fairly new to jQuery so a little unsure where to begin. I'd rather not replace the <div>
with an <a>
hyperlink tag as in time I'll be adding hyperlinks inside the circle.
Would really appreciate help with this. Here is a copy of my CSS & HTML for reference:
CSS:
.containMe {
position:absolute;
top:5px;
left: 0px;
z-index:5
}
.containMe {
width: 147px;
height: 147px;
position: relative;
margin: 40px;
}
.circle {
width: 147px;
height: 147px;
margin: 0;
display: block;
position: relative;
overflow: hidden;
-webkit-border-radius: 75px;
-moz-border-radius: 75px;
border-radius: 75px;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
-ms-transition: all 0.3s;
transition: all 0.3s;
}
.containMe:hover .circle {
width: 285px;
height: 285px;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
border-radius: 150px;
}
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class="containMe">
<div class="circle" style="background-color:#15c3a8">
<p>Text</p>
</div>
</div>
</body>
</html>
Many thanks for any help with this.