File tree Expand file tree Collapse file tree 3 files changed +87
-7
lines changed
Expand file tree Collapse file tree 3 files changed +87
-7
lines changed Original file line number Diff line number Diff line change 5858 100% {
5959 transform : translateY (-100% );
6060 }
61- }
61+ }
62+
63+ @keyframes animation {
64+ 11 .1%, 22.2% {
65+ content : "faciles et rapides" ;
66+ width : 14ch ;
67+ }
68+ 33 .3% {
69+ width : 0ch ;
70+ }
71+ 44 .4%, 55.5% {
72+ content : "savoureuses et rapides" ;
73+ width : 19ch ;
74+ }
75+ 66 .6% {
76+ width : 0ch ;
77+ }
78+ 77 .7%, 88.8% {
79+ content : "délicieuses et rapides" ;
80+ width : 17.5ch ;
81+ }
82+ 100% {
83+ width : 0ch ;
84+ }
85+ }
86+ @keyframes blinking {
87+ 100% {
88+ opacity : 0 ;
89+ }
90+ }
Original file line number Diff line number Diff line change @@ -94,10 +94,6 @@ main h2 {
9494
9595footer {
9696 display : flex;
97- /* Use Flexbox */
98- /* position: fixed;
99- bottom: 0;
100- left: 0; */
10197 padding : 16px ;
10298 box-sizing : border-box;
10399 margin-left : 20px ;
@@ -540,6 +536,48 @@ nav span {
540536 transition-delay : 0.4s ;
541537}
542538
539+ .typing-effect-content {
540+ margin-left : 10% ;
541+ margin-right : 10% ;
542+ display : flex;
543+ justify-content : center;
544+ text-align : center !important ;
545+ }
546+
547+ .typing-effect-content h3 {
548+ position : relative;
549+ overflow : hidden;
550+ color : white;
551+ font-size : 25px ;
552+ margin : 0 ;
553+ }
554+
555+ .typing-effect-content h2 {
556+ color : white;
557+ font-size : 25px ;
558+ margin : 0 ;
559+ }
560+
561+ .typing-effect-content h3 ::after {
562+ content : "faciles et rapides" ;
563+ display : inline-block;
564+ animation : animation 20s steps (20 ) infinite;
565+ width : 0ch ;
566+ color : var (--purple );
567+ white-space : nowrap;
568+ }
569+
570+ .typing-effect-content h3 ::before {
571+ display : inline-block;
572+ content : "" ;
573+ width : 2px ;
574+ height : 100% ;
575+ background-color : white;
576+ position : absolute;
577+ right : 0 ;
578+ animation : blinking .4s linear alternate infinite;
579+ }
580+
543581/* Media Query - Leave this line at the end */
544582@media only screen and (max-width : 768px ) {
545583 header {
@@ -599,10 +637,20 @@ nav span {
599637 margin-right : 5% ;
600638 }
601639
640+ .content h3 {
641+ margin-left : 5% ;
642+ margin-right : 5% ;
643+ font-size : 20px ;
644+ }
645+
602646 .grid-item-text {
603647 font-size : 30px ;
604648 }
605649
650+ .typing-effect-content h3 {
651+ font-size : 20px ;
652+ }
653+
606654 footer .liens {
607655 margin-top : 0px ;
608656 }
Original file line number Diff line number Diff line change 7070 </nav >
7171
7272 <main >
73- <div class =" content" style =" padding-bottom : 30px " >
74- <h3 >Des recettes de cuisine faciles et rapides</h3 >
73+ <div class =" description" >
74+ <div class =" content" ><h3 >Des recettes de cuisine </h3 ></div >
75+ <div class =" typing-effect-content " style =" padding-bottom : 30px " >
76+ <h3 ></h3 >
77+ </div >
7578 </div >
7679
7780 <div class =" grid-container" >
You can’t perform that action at this time.
0 commit comments