I am trying to create an effect with css -- I want three overlapping circles looking like a venn-diagram. I want to apply css-animation transforms on the circles so they appear to pulsate.
I am currently trying to use ·
or · as a venn diagram circle. However, as you can (hopefully) see, the position of this character is not flush left or right... and therefore positioning of it is terribly difficult. Note how in the picture below the dots are outside of a bounding box of 100px x 100px.
I want to position the venn-diagram's circles into their parent element so it is easy to position the venn-diagram element elsewhere. Is there an altogether better approach to how to create this look? Custom font? SVG?
<style>
@-webkit-keyframes dot1
{
0% {color: rgba(255, 0, 0, .3);}
50% {color: rgba(255, 0, 0, .8);}
100% {color: rgba(255, 0, 0, .3);}
}
.dot
{
font-size: 200px;
position: absolute;
}
.dot1
{
-webkit-animation:dot1 2s infinite;
top: 0;
}
.dot2
{
-webkit-animation:dot1 2s infinite;
left: 20px;
top: 0;
}
.dot3
{
-webkit-animation:dot1 2s infinite;
top: 10px;
left: 15px;
}
.container
{
border-style: solid;
border-color: pink;
border-width: 1px;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div class='container'>
<span class='dot dot1'>·</span>
<span class='dot dot2'>·</span>
<span class='dot dot3'>·</span>
</div>
</body>