IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Effet zoom sur une image responsive


Sujet :

Responsive design en CSS

  1. #1
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut Effet zoom sur une image responsive
    Bonsoir à tous,
    Est-il possible de mettre en place un effet zoom sur une image responsive uniquement au format tablette et inférieur ?
    Mon code est le suivant :
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
              <div class="grid__item" data-size="1280x1212">
                <figure> <a href="../img/original/cavazanno.jpg" class="img-wrap"><img src="../img/thumbs/cavazanno_thumb.jpg" alt="Giorgio Cavazzano" /></a>
                  <figcaption><strong>Giorgio Cavazzano</strong></figcaption>
                </figure>
                <div class="description description--grid">
                  <h1><strong>Giorgio Cavazzano</strong></h1>
                  <p>Histoire de Picsou</p>
    Chaque image a une taille différente (data-size). Le
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    <a href="../img/original/cavazanno.jpg" class="img-wrap">
    est impeccable sur format ordi, mais sur tablette, l'image faisant 50% de large, difficile de la voir. N'en parlons pas sur smartphone
    Je ne tombe sur les forums que sur des solutions de zoom sur image à un format bien déterminé. Rajouter un effet lighbox (ou un effet loupe) serait idéal à partir d'un certain format, mais cela me semble impossible à faire dans mon cas
    Est-ce possible ?
    Merci pour votre aide et bonne soirée,
    dh

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    oui, c'est possible, et la réponse est dans ta question :
    Citation Envoyé par dhillig Voir le message
    ... Rajouter un effet lighbox (ou un effet loupe) ...

  3. #3
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut Rajouter un effet lighbox (ou un effet loupe)
    Bonjour jreaux62,
    Tu pencherais plus pour l'effet zoom (comme http://alijafarian.com/demos/css-image-zooming-grid/?
    Où me mets-je encore le doigt d'ans l'œil ?
    J'ai tenté diverses lighbox... aucun résultat
    Merci pour ton aide et bonne journée,
    dh

  4. #4
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    toi seul sais quel effet tu veux obtenir au final. A toi d'en prendre la décision.

    S'il s'agit d'afficher une grande image au clic sur une petite, n'importe quelle lightbox fera l'affaire !
    Par exemple :




    N.B. Et "Ca ne marche pas" n'a jamais aidé à résoudre quoi que ce soit.

  5. #5
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut
    Cela doit donc venir de mon code ?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
                <figure> <a href="../img/original/cavazanno.jpg" class="img-wrap image-popup-vertical-fit" href="../img/original/cavazanno.jpg"><img src="../img/thumbs/cavazanno_thumb.jpg" alt="Giorgio Cavazzano" /></a>
                  <figcaption><strong>Giorgio Cavazzano</strong></figcaption>
                </figure>
                <div class="description description--grid">
                  <h1><strong>Giorgio Cavazzano</strong></h1>
                  <p>Histoire de Picsou</p>
    A l'origine, j'ai déjà un effet "lightbox", mais le site étant responsive, sur smartphone la photo bg est minuscule (50% de largeur), j'aimerais donc rajouter un 3e href à la photo bg pour qu'elle s'affiche à width: 100% sur tablette et smartphone.
    Est-ce possible ?
    Merci pour ton aide jreaux62,
    dh

  6. #6
    Invité
    Invité(e)
    Par défaut
    Montre-nous des copies d'écran,
    car là, je ne vois vraiment pas ce qui pose problème...

  7. #7
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut
    Nom : 1.png
Affichages : 1208
Taille : 174,4 KoNom : 2.png
Affichages : 1216
Taille : 357,8 KoNom : 3.png
Affichages : 1200
Taille : 43,6 Ko
    Image un : style portfolio
    Image deux : après un clic sur une image
    Image trois : Idem mais sur un format ("device") réduit.
    La question est : peut-on zoomer sur l'image (image trois) ?
    Est-ce possible ?
    J'espère en passant que tu as apprécié ma dédicace de Gotlib
    Merci pour ton aide,
    dh

  8. #8
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 959
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Bonjour,
    Citation Envoyé par dhillig
    J'espère en passant que tu as apprécié ma dédicace de Gotlib
    il a fait tellement de choses intéressantes que je suis un peu déçu que tu nous mettes cet exemple

  9. #9
    Invité
    Invité(e)
    Par défaut
    Idem.

    Je suis un grand fan de Gotlib.

    Particulièremant la série des "RHAA LOVELY"* !
    Nom : 2323_l.gif
Affichages : 2261
Taille : 7,3 Ko
    Nom : rhaalovelypocket01.jpg
Affichages : 1217
Taille : 57,2 Ko

    * Créée dans les années 70... Ca ne nous Rhââjeunis pas.
    Dernière modification par Invité ; 06/02/2016 à 22h38.

  10. #10
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut
    Je parlais dans ce cas plus de l'humour de Gotlib* que de la beauté de la dédicace
    D'ailleurs, peut-on zoomer dessus ?
    Bon week-end à vous deux,
    dh

    *je le croisais régulièrement en 84-85, ce qui m'a permis d'avoir des dédicaces plus que personnalisées

  11. #11
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut
    Bonjour à tous,
    Dois-je comprendre qu'il n'il a pas de solution à mon problème ?
    Bonne journée,
    dh

  12. #12
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    on t'a donné toutes les solutions *.

    A toi de nous montrer ce que tu as tenté, avec le code, évidemment, et messages d'erreur éventuels.

    * j'ajoute celle-ci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=4.0, user-scalable=yes">
    maximum-scale=4.0 : sur tablette ou smartphone : possibilité de "zoomer" la page x 4.

  13. #13
    Futur Membre du Club Avatar de mathieuDev31
    Homme Profil pro
    Développeur Web
    Inscrit en
    Janvier 2016
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2016
    Messages : 3
    Points : 8
    Points
    8
    Par défaut
    Bonjour,

    Une solution pour palier l'effet "lightbox" non responsive (le rendu visuel est différent mais c'est rapide et opérant) :

    - pour l'effet zoom : un transform: scale sur l'image et un overflow sur la figure avec dimension fixe :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    figure {
    	height:150px;
    	width:150px;
    	overflow:hidden;
    }
    figure img {
    	width:100%;
    	transition:1s;
    }
    figure img:hover {
    	transform: scale(1.15);
    }
    - pour le responsive tu modifies la taille de la figure selon le format
    en oubliant pas <meta name="viewport" content="width=device-width, initial-scale=1.0"> dans le head

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    @media only screen and (min-width : 320px) and (max-width : 480px) {
    	figure {
        	        height:Xpx;
    		width:Xpx;
    	}
    }
    ps : le plus optimal serait peut être de fixer des dimensions par javascript en calculant la dimension idéale suivant la taille d'une div parente

  14. #14
    Membre habitué
    Homme Profil pro
    Webdesigner
    Inscrit en
    Août 2014
    Messages
    445
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Août 2014
    Messages : 445
    Points : 138
    Points
    138
    Par défaut
    Bonjour mathieuDev31,
    Merci pour ta réponse. Malheureusement ces CSS ne font que zoomer la partie diaporama. Il me faut zoomer sur l'image après clic sur la vignette (voir images postées précédemment).
    Mais j'en suis responsable, je ne vous ai pas envoyé toutes les CSS
    Tout ce qui concerne l''après clic se trouve ici :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    .grid {
    	position: relative;
    	margin: 0px auto 0;
    	/* [disabled]width: 100%; */
    	/* [disabled]padding-top: 300px; */
    	top: 0px;
    }
     
    .js .grid::after {
    	content: '';
    	position: absolute;
    	width: 100%;
    	height: 100%;
    	top: 0;
    	left: 0;
    	pointer-events: none;
    	background: #252323 url(../img/loading.svg) no-repeat 50% 75px;
    	background-size: 60px auto;
    	-webkit-transition: opacity 0.3s;
    	transition: opacity 0.3s;
    }
     
    .js .grid--loaded::after {
    	opacity: 0;
    }
     
    .grid__item {
    	width: 270px;
    	padding: 10px;
    }
     
    .grid__item--current {
    	opacity: 0 !important;
    }
     
    .img-wrap {
    	display: block;
    }
     
    .img-wrap:focus,
    .img-wrap:hover {
    	outline: none;
    }
     
    .img-wrap img {
    	display: block;
    	max-width: 100%;
    }
     
    .preview {
    	position: fixed;
    	z-index: 1000;
    	top: 0;
    	left: 0;
    	display: -ms-flex;
    	display: -webkit-flex;
    	display: flex;
    	-ms-flex-pack: center;
    	-webkit-justify-content: center;
    	justify-content: center;
    	-ms-flex-line-pack: center;
    	-webkit-align-content: center;
    	align-content: center;
    	-ms-flex-align: center;
    	-webkit-align-items: center;
    	align-items: center;
    	width: 50%;
    	height: 100%;
    	pointer-events: none;
    }
     
    .preview::before {
    	content: '';
    	position: fixed;
    	top: 0;
    	left: 0;
    	width: 100%;
    	height: 100%;
    	opacity: 0;
    	background: #1f1d1d;
    	-webkit-transition: opacity 0.6s;
    	transition: opacity 0.6s;
    }
     
    .preview--open {
    	pointer-events: auto;
    }
     
    .preview--open::before {
    	opacity: 1;
    }
     
    .clone {
    	position: fixed;
    	z-index: 110;
    	-webkit-transition: -webkit-transform 0.5s;
    	transition: transform 0.5s;
    	-webkit-backface-visibility: hidden;
    }
     
    .original {
    	position: relative;
    	z-index: 120;
    	display: block;
    	object-fit: contain;
    	-webkit-transition: opacity 0.2s;
    	transition: opacity 0.2s;
    	-webkit-backface-visibility: hidden;
    }
     
    .preview--open .animate {
    	/* open */
    	-webkit-transition: -webkit-transform 0.6s, opacity 0.2s;
    	transition: transform 0.6s, opacity 0.2s;
    }
     
    .animate {
    	/* close */
    	-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
    	transition: transform 0.3s, opacity 0.2s;
    }
     
    .description {
    	color: #fff;
    	/* [disabled]margin-bottom: 20px; */
    }
     
    .js .description--grid {
    	display: none;
    }
     
    .description--preview {
    	font-size: 2em;
    	position: absolute;
    	z-index: 140;
    	width: 100%;
    	left: 100%;
    	top: 0;
    	height: 100%;
    	padding: 0 1em;
    	display: -ms-flex;
    	display: -webkit-flex;
    	display: flex;
    	-ms-flex-direction: column;
    	-webkit-flex-direction: column;
    	flex-direction: column;
    	-ms-flex-pack: center;
    	-webkit-justify-content: center;
    	justify-content: center;
    	-ms-flex-align: start;
    	-webkit-align-items: flex-start;
    	align-items: flex-start;
    	opacity: 0;
    	-webkit-transition: opacity 1s, -webkit-transform 1s;
    	transition: opacity 1s, transform 1s;
    	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    	-webkit-transform: translate3d(0, 30px, 0);
    	transform: translate3d(0, 30px, 0);
    }
     
    .preview--open .description--preview {
    	opacity: 1;
    	-webkit-transition-delay: 0.2s;
    	transition-delay: 0.2s;
    	-webkit-transform: translate3d(0, 0, 0);
    	transform: translate3d(0, 0, 0);
    }
     
     
     
     
    /* Details */
     
    .details {
    	/* [disabled]max-width: 100%; */
    	/* [disabled]margin-right: 20px; */
    	/* [disabled]padding-right: 20px; */
    	margin-top: -20px;
    }
     
    .details ul {
    	line-height: 0;
    	position: relative;
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
     
    .details ul li {
    	font-size: 0.5em;
    	position: relative;
    	display: inline-block;
    	margin: 0 1em 0 0;
    	padding: 0.15em 0;
    	white-space: normal;
    	opacity: 0;
    	color: #FFFFFF;
    	-webkit-transition: -webkit-transform 1s, opacity 1s;
    	transition: transform 1s, opacity 1s;
    	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    	-webkit-transform: translate3d(0, 20px, 0);
    	transform: translate3d(0, 20px, 0);
    }
     
    .preview--open .details ul li {
    	opacity: 1;
    	-webkit-transform: translate3d(0, 0, 0);
    	transform: translate3d(0, 0, 0);
    }
     
    .preview--open .details ul li:nth-child(1) {
    	-webkit-transition-delay: 0.2s;
    	transition-delay: 0.2s;
    }
     
    .preview--open .details ul li:nth-child(2) {
    	-webkit-transition-delay: 0.3s;
    	transition-delay: 0.3s;
    }
     
    .preview--open .details ul li:nth-child(3) {
    	-webkit-transition-delay: 0.4s;
    	transition-delay: 0.4s;
    }
     
    .preview--open .details ul li:nth-child(4) {
    	-webkit-transition-delay: 0.5s;
    	transition-delay: 0.5s;
    }
     
    .preview--open .details ul li:nth-child(5) {
    	-webkit-transition-delay: 0.6s;
    	transition-delay: 0.6s;
    }
     
     
    .icon {
    	font-family: 'camera-icons';
    	font-weight: normal;
    	font-style: normal;
    	font-variant: normal;
    	line-height: 1;
    	display: inline-block;
    	vertical-align: middle;
    	text-transform: none;
    	/* Better Font Rendering =========== */
    	-webkit-font-smoothing: antialiased;
    	-moz-osx-font-smoothing: grayscale;
    	speak: none;
    }
     
    .icon + span {
    	margin-left: 5px;
    	vertical-align: middle;
    }
     
    .icon-focal_length:before {
    	content: '\e600';
    }
     
    .icon-exposure_time:before {
    	content: '\e601';
    }
     
    .icon-iso:before {
    	content: '\e602';
    }
     
    .icon-camera:before {
    	content: '\e603';
    }
     
    .icon-aperture:before {
    	content: '\e604';
    }
     
    .details .icon {
    	margin-right: 5px;
    	color: #77d45b;
    }
     
     
    /* Close button */
     
    .action {
    	font-size: 2em;
    	margin: 0;
    	padding: 0;
    	cursor: pointer;
    	vertical-align: top;
    	color: #FF9900;
    	border: none;
    	background: none;
    }
     
    .action:hover,
    .action:focus {
    	color: #FFFFFF;
    	outline: none;
    }
     
    .action--close {
    	position: fixed;
    	z-index: 150;
    	top: 0;
    	right: 0px;
    	padding: 1em;
    	opacity: 0;
    	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    	transition: opacity 0.3s, transform 0.3s;
    	-webkit-transform: scale3d(0.6, 0.6, 1);
    	transform: scale3d(0.6, 0.6, 1);
    	/* [disabled]left: 0px; */
    }
     
    .preview--image-loaded .action--close {
    	opacity: 1;
    	-webkit-transform: scale3d(1, 1, 1);
    	transform: scale3d(1, 1, 1);
    }
     
    .text-hidden {
    	position: absolute;
    	display: block;
    	overflow: hidden;
    	width: 0;
    	height: 0;
    	color: transparent;
    }
     
    @media screen and (max-width: 40em) {
    	.description--preview h3 {
    		font-size: 0.5em;
    	}
    	.description--preview p,
    	.details {
    	display: none;
    	}
     
    }
     
     
     
     
    *,
    *:after,
    *:before {
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    }
     
    .clearfix:before,
    .clearfix:after {
    	display: table;
    	content: '';
    }
     
    .clearfix:after {
    	clear: both;
    }
     
     
    a {
    	outline: none;
    	color: #FFFFFF;
    	text-decoration: none;
    }
     
    a:hover,
    a:focus {
    	color: #fff;
    }
     
    button:focus {
    	outline: none;
    }
     
    .hidden {
    	position: absolute;
    	overflow: hidden;
    	width: 0;
    	height: 0;
    	pointer-events: none;
    }
     
     
    /* Header */
     
    .header {
    	/* [disabled]padding-bottom: 4em; */
    	padding-left: 0.5em;
    	padding-right: 0.5em;
    	/* [disabled]padding-top: 2em; */
    	top: 0px;
    	margin-left: auto;
    	margin-right: auto;
    	/* [disabled]z-index: 9999; */
    	width: 100%;
    	background-color: #222438;
    	/* [disabled]overflow-y: scroll; */
    }
     
    .header h1 {
    	margin: 0.5em 0 0;
    	letter-spacing: -1px;
    	font: 7em 'Luckiest Guy',Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,Gadget,sans-serif;
    		color: #00000;
     
    }
     
    .header h1 span {
    	display: block;
    	color: #FFB000;
    	;
    	font-weight: normal;
    	font-size: 0.6em;
    	letter-spacing: 0;
    	line-height: 1em;
    	padding-bottom: 0.5em;
    	padding-left: 0;
    	padding-right: 0;
    	/* [disabled]padding-top: 0.8em; */
    }
     
     
    /* Top Navigation Style */
     
    .links {
    	position: relative;
    	display: inline-block;
    	text-align: center;
    	white-space: nowrap;
    }
     
    .links::after {
    	position: absolute;
    	top: 0;
    	left: 50%;
    	width: 1px;
    	height: 100%;
    	background: rgba(255, 255, 255, 0.1);
    	content: '';
    	-webkit-transform: rotate3d(0, 0, 1, 22.5deg);
    	transform: rotate3d(0, 0, 1, 22.5deg);
    }
     
     
     
    /* Demo links */
     
    .menu {
    	text-align: center;
    	margin-bottom: 10px;
    	margin-left: 0;
    	margin-right: 0;
    	/* [disabled]margin-top: 2em; */
    }
     
    .menu li a {
    	margin: 0 0.5em;
    	color: #FFFFFF;
    	font: bold 15px/18px "montserrat bold";
    }
    .menu li a:hover {
    	font: bold 15px/14px "montserrat bold";
     
    	color: #FFB000;
     
    }
     
    .menu ul {
    	list-style: none;
    	text-align: center;
    	padding: 0;
    	margin-top: -10px;
    }
    .menu li {
    	display: inline;
    }
     
    .menu li:not(:last-child) /* sauf le dernier */
    { margin-right:5px; }
     
     
    /* Content */
     
    .content {
    	/* [disabled]max-width: 1080px; */
    	padding-bottom: 3em;
    	padding-left: 0;
    	padding-top: 1em;
    	/* [disabled]overflow-x: hidden; */
    	/* [disabled]overflow-y: hidden; */
    	margin-bottom: 0;
    	margin-left: auto;
    	margin-right: auto;
    	/* [disabled]margin-top: 500px; */
    	width: 100%;
    }
     
     
    /* Related demos */
     
    .content--related {
    	text-align: center;
    	font-weight: bold;
    	padding: 0 1em;
    }
     
    .media-item {
    	display: inline-block;
    	padding: 1em;
    	vertical-align: top;
    	-webkit-transition: color 0.3s;
    	transition: color 0.3s;
    }
     
    .media-item__img {
    	max-width: 100%;
    	opacity: 0.3;
    	-webkit-transition: opacity 0.3s;
    	transition: opacity 0.3s;
    }
     
    .media-item:hover .media-item__img,
    .media-item:focus .media-item__img {
    	opacity: 1;
    }
     
    .media-item__title {
    	margin: 0;
    	padding: 0.5em;
    	font-size: 1em;
    }
     
     
    /* Demo ad style */
     
     
     
     
     
    @media screen and (max-width: 40em) {
    	.header h1 {
    		font-size: 3em;
    	}
    	.menu {
    margin-top: 2em; }
    .header h1 span {
     
    	padding: 0.4em 0 0.2em;
    }
    }
    Toutes mes excuses pour cet oubli plus qu'important
    Merci pour ton aide,
    dh

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Article] Appliquer un effet de zoom sur une image avec les CSS
    Par Bovino dans le forum Publications (X)HTML et CSS
    Réponses: 1
    Dernier message: 17/10/2010, 07h53
  2. Appliquer un effet de zoom sur une image avec les CSS
    Par Kerod dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 17/10/2010, 07h53
  3. Zoom sur une image
    Par flo456 dans le forum Général JavaScript
    Réponses: 35
    Dernier message: 19/05/2006, 07h48
  4. [débutant] zoom sur une image
    Par Anthony17 dans le forum Delphi
    Réponses: 1
    Dernier message: 16/05/2006, 22h09
  5. Zoom sur une image
    Par AurelBUD dans le forum C++Builder
    Réponses: 5
    Dernier message: 07/05/2004, 17h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo