Código de CSS - Redes sociales con animación al pasar el ratón por encima

1
estrellaestrellaestrellaestrellaestrella(1)

Publicado el 8 de Enero del 2021gráfica de visualizaciones de la versión: 1
2.538 visualizaciones desde el 8 de Enero del 2021
estrellaestrellaestrellaestrellaestrella
estrellaestrellaestrellaestrella
estrellaestrellaestrella
estrellaestrella
estrella

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css" media="all">
    <style>
    .socialNetwork {
        position: relative;
        width: 50px;
        height: 50px;
        border:2px solid gray;
        border-radius: 50%;
        box-sizing: border-box;
        color:grey;
        animation: out 0.25s linear both;
    }
    .socialNetwork:before {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .socialNetwork:hover {
        animation: in 0.25s linear both;
    }
    .socialNetwork:hover>div {
        animation: inBackground 0.25s linear both;
    }
    .socialNetwork>div {
        position:relative;
        width:0%;
        height:0%;
        top:50%;
        left:50%;
        background-color: #ff008f;
        border-radius: 50%;
        z-index: -1;
    }
    @keyframes in {
        to {
            color:white;
            font-size:24px;
        }
    }
    @keyframes out {
        to {
            color:grey;
            font-size:20px;
        }
    }
    @keyframes inBackground {
        to {
            width: 100%;
            height:100%;
            left:0%;
            top:0%;
        }
    }
    </style>
</head>
<body>
 
<div class='socialNetwork fa fa-facebook'>
    <div></div>
</div>
 
<div class='socialNetwork fa fa-twitter'>
    <div></div>
</div>
 
<div class='socialNetwork fa fa-instagram'>
    <div></div>
</div>
 
<div class='socialNetwork fa fa-linkedin'>
    <div></div>
</div>
 
<div class='socialNetwork fa fa-whatsapp'>
    <div></div>
</div>
 
</body>
</html>



Comentarios sobre la versión: 1 (1)

Roberto Sanchez
27 de Abril del 2023
estrellaestrellaestrellaestrellaestrella
Genial
Responder

Comentar la versión: 1

Nombre
Correo (no se visualiza en la web)
Valoración
Comentarios...
CerrarCerrar
CerrarCerrar
Cerrar

Tienes que ser un usuario registrado para poder insertar imágenes, archivos y/o videos.

Puedes registrarte o validarte desde aquí.

Codigo
Negrita
Subrayado
Tachado
Cursiva
Insertar enlace
Imagen externa
Emoticon
Tabular
Centrar
Titulo
Linea
Disminuir
Aumentar
Vista preliminar
sonreir
dientes
lengua
guiño
enfadado
confundido
llorar
avergonzado
sorprendido
triste
sol
estrella
jarra
camara
taza de cafe
email
beso
bombilla
amor
mal
bien
Es necesario revisar y aceptar las políticas de privacidad

http://lwp-l.com/s6813