#mobile { display: flex; justify-content: center; align-items: flex-start; min-height: 85vh; } svg { width: 95%; height: auto; position: absolute; align-self: center; } .edges { stroke: #000; stroke-width: 1%; } .nodes { stroke: #afb3b6; } .nodes:active, .nodes:hover { animation: svg_pulse 2s ease-in-out forwards; } #circle_one:active { opacity: 100% !important; } @keyframes svg_pulse { 0% { transform: scale(1); stroke: #00ffef; } 20% { transform: scale(1.01); } 80% { transform: scale(1); stroke: #7df9ff; } 80% { transform: scale(1.01); } 100% { transform: scale(1); stroke: #00ffef; } } .group_1:hover > #edge_1 { animation: glowing 2s ease-in forwards; } .group_1:active > #edge_1 { animation: glowing 2s ease-in forwards; } .group_1:hover > #edge_2 { animation: glowing 2s ease-in forwards; } .group_1:active > #edge_2 { animation: glowing 2s ease-in forwards; } .group_2:hover > #edge_3 { animation: glowing 2s ease-in forwards; } .group_2:active > #edge_3 { animation: glowing 2s ease-in forwards; } .group_2:hover > #edge_4 { animation: glowing 2s ease-in forwards; } .group_2:active > #edge_4 { animation: glowing 2s ease-in forwards; } .group_2:hover > #edge_5 { animation: glowing 2s ease-in forwards; } .group_2:active > #edge_5 { animation: glowing 2s ease-in forwards; } .group_2:hover > #edge_6 { animation: glowing 2s ease-in forwards; } .group_2:active > #edge_6 { animation: glowing 2s ease-in forwards; } .group_3:hover > #edge_7 { animation: glowing 2s ease-in forwards; } .group_3:active > #edge_7 { animation: glowing 2s ease-in forwards; } .group_3:hover > #edge_8 { animation: glowing 2s ease-in forwards; } .group_3:active > #edge_8 { animation: glowing 2s ease-in forwards; } .group_4:hover > #edge_9 { animation: glowing 2s ease-in forwards; } .group_4:active > #edge_9 { animation: glowing 2s ease-in forwards; } .group_5:hover > #edge_10 { animation: glowing 2s ease-in forwards; } .group_5:active > #edge_10 { animation: glowing 2s ease-in forwards; } @keyframes glowing { 0% { stroke: #00ffef; } 50% { stroke: #7df9ff; } 100% { stroke: #00ffef; } }