Сделайте слайдер (.toggleClass) видимым внизу страницы, и наведите курсор мыши на другой контент - PullRequest
0 голосов
/ 21 апреля 2020

Я работаю над страницей, где у меня есть слайдер внизу страницы. Теперь ползунок активируется при нажатии кнопки «О программе» и скользит от нижней части страницы вверх. Я sh создаю эффект, как на этом сайте https://tatianabilbao.com/, где ползунок всегда немного виден снизу, а содержимое слайдера меняется, когда разные элементы страницы колебались. Я пытался подражать этому, но, к сожалению, мне не удавалось найти способ обойти это.

Может ли кто-нибудь высказать какие-то идеи?

С уважением

$('.trigger, .slider').click(function() {
  $('.slider').toggleClass('close');
});
/* Body */

* {
  margin: o;
  padding: o;
}

html, body {
  margin:0;
  padding:0;
}

/* Header */

#main{
  overflow: auto;
  margin-top: 25px;
  margin-bottom: 50px;
}

#contact{
text-align: center;
margin: auto;
font-size: 15px;
font-family: 'Times New Roman';
color: red;
}

#About{
margin: 50px; 
}

/* Works */

#container_1{
  display: grid;

  grid-template-columns: 25% 25% 25% 25%;
  justify-items: center;
  grid-gap: 1em;
}



/* Footer */

#footer {

position: relative;
height: 100px;
margin-top: -100px;
clear: both;
}


/* Slider */

.slider {

position: relative;
margin-bottom: -100px;
clear: both;

  position: fixed;
  min-height: 100%;
  width: 100%;
  top: 0;
  overflow: hidden;
  background-color: #FFF; color: #000;
  transition: all 1s;
}

.slider.close {
  top: 100%;
  min-height: 100%;
}

/* slider_content */

#container_curriculum{
font-family: 'Times New Roman';
display: grid;
font-size: 15px;

grid-template-columns: 25% 25% 25% 25%;
justify-items: center;
grid-gap: 1em;
padding:25px;
height: 100%;
}
<!DOCTYPE html>
<html>
<head>
<title>Sofia Bordoni</title>

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

</head>

<body>


			<div id="main">

		        <div id="contact">
		             Sofia Bordoni
		               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		               sofiabordoni@gmail.com  
		               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		               0045 &nbsp;9164&nbsp;6938
		               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		               <a class="trigger">
		               	About
		               </a>
		        </div>
			</div>



		<div id="container_1">

			<div class="item item-1">

				 <img class="Image" src="Images/SgDOoMc9ShRg0Zpr.png" width="150px">

			</div>

			<div class="item item-2">

				<img class="Image" src="Images/Merry Christmas NC.jpg" width="150px">
				
			</div>


			<div class="item item-3">

				<img class="Image" src="Images/poster_mockup_MD1-kopi 2.jpg" width="150px">
				
			</div>

			<div class="item item-4">

				<img class="Image" src="Images/2Tecnica_MENU_bAGLIONI_DROGHERIA_CREATIVA.jpg" width="150px">
				
			</div>

			<div class="item item-5">

				<img class="Image" src="Images/2019_Normann_Copenhagen_Tap_Stool_Caramel_Walnut_Ren_Tea_Towel_Double_Grid_Dark_Blue_Cool_Grey_01.jpg" width="150px">
				
			</div>

			<div class="item item-6">

				<img class="Image" src="Images/Snooze Bed Linen 200x2201.png" width="150px">
				
			</div>


			<div class="item item-7">

				<img class="Image" src="Images/grido_leggero-kopi.jpg" width="150px">
				
			</div>

			<div class="item item-8">

				<img class="Image" src="Images/Happy New Year NC.png" width="150px">
				
			</div>

			<div class="item item-9">

				<img class="Image" src="Images/HAY.png" width="150px">
				
			</div>

			<div class="item item-10">

				<img class="Image" src="Images/Holiday_Greeting_Main.png" width="150px">
				
			</div>

			<div class="item item-11">

				<img class="Image" src="Images/mani-sito-kopi.jpg" width="150px">
				
			</div>

		</div>





				<div class="slider close" style="max-height: 100vh;">

				<div id="container_curriculum">
						
						<div class="item item-12">
							

							<div class="item item-11">

							<img class="Image" src="Images/Skærmbillede 2020-04-20 kl. 16.04.31.png" width="300px">
								
							</div>
							

								<p>
								I love the memory of my childhood, that was full of colors, paper, pencils, and handcraft works. Developing an obsession towards various creative fields. Photography, developing analog photos. Architecture, seeing buildings as shapes, volumes and material combinations. Typography, as well as observing letters as shapes with an entrenched character. Upon realizing that graphic design is the field that was capable to bring together all of these passions
									I followed them with enthusiasm.
								</p>

						</div>

						<div class="item item-14">
								
								<p>
								<b>
								Education
								</b>
								</p>

								<p>
									2013 <br>
									Scientific High School N. Tron Technology Plan
								</p>

								<p>
									2016 <br>
									University Architecture of Venice IUAV Industrial Design and Multimedia
								</p>

								<p>
								<b>
								Interests
								</b>
								</p>

								<p>
									Graphic Design / Typography/
									Product Design / Textile / Accessories/ Printing / Letterpress / Binding Architecture / Interior Design
									Cultural Exhibitions / Art
									Photography
								</p>

								<p>
								<b>
									Collaborations
								</b>
								</p>

								<p>
									BetaFactory / UnderBroen CPH <br>
									Art direction / Graphic Designer <br>
									September 2017 – Present
								</p>

								<p>
									Drogheria Creativa <br>
									Art direction / Graphic Designer <br>
									January 2018 – January 2019
									Client Baglioni Hotels
								</p>

						</div>

						


						<div class="item item-16">

								<p>
								<b>
									Experience
								</b>
								</p>

								<p>
									Normann Copenhagen <br>
									Graphic Product Designer<br>
									May 2018 - Present <br>
								</p>

								<p>
									Copenhagen Architecture Festival <br>
									Graphic Product Designer <br>
									January 2018 - May 2018<br>
								</p>

								<p>
									Clara von Zweigberg Studio <br>
									Graphic Designer Intern <br>
									Jan 2017 - July 2017 <br>
									Clients: HAY, Varier Furniture, Areaware <br>
								</p>

								<p>
									Studio FM Milano  <br>
									Graphic Designer Intern <br>
									Feb 2016 - July 2016 <br>
									Clients: Poltrona Frau, Cassina, Tecno <br>
								</p>

								<p>
									Studio Anagramma <br>
									Graphic Designer Intern<br>
									June 2015 - Aug 2015<br>
								</p>
								
								<p>
									Università di Architettura Venezia IUAV<br>
									Laboratory assistant <br>
									Feb 2015 - May 2015<br>
								</p>
						</div>


						<div class="item item-15">
								<p>
								<b>
								Competences
								</b>
								</p>

								<p>
									Languages <br>
									Italian – native <br>
									English – fluent <br>
									Danish – 4th Module <br>

								</p>

								<p>
									Adobe Suite <br>
									Indesign – expert <br>
									Illustrator – expert <br>
									Photoshop – expert <br>
									Lightroom – expert <br>

								</p>

								<p>
									Operating systems <br>
									Macintosh – expert <br>
									Windows – basic <br>

								</p>

								<p>
									Webprogramming <br>
									HTML – basico <br>
									CSS – basico <br>

								</p>

								<p>
									2D/3D modelling <br>
									AutoCAD – basic <br>
									Rhinoceros – basic <br>
								</p>
						</div>


						</div>
					</div>

		</div>



	<script src="slider.js"></script>

</body>

</html>
...