* { margin: 0; padding: 0; } div { margin: 50px; position: relative; } div i { position: absolute; width: 2px; height: 30px; background: red; transform: rotate(30deg); top: 0; left: 10px; animation: myfirst 2s infinite; } div i:nth-child(2) { transform: rotate(-30deg); left: 24px; } div i:nth-child(3) { transform: rotate(90deg); top: 24px; top: 13px; left: 17px; } div:after { content: ''; position: absolute; width: 2px; height: 11px; background: red; top: 10px; left: 17px; } div:before { content: ''; content: ''; position: absolute; background: red; width: 2px; height: 3px; left: 17px; bottom: -25px; } @-webkit-keyframes myfirst { 0% { box-shadow: 0 0 10px red,0 0 10px red; } 50% { box-shadow: 0 0 10px transparent; } 100%{ box-shadow: 0 0 10px red,0 0 10px red; } }