1 reply [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 5 years 10 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Hey Guys , Just found this code online

#Slide1:checked ~ .overflow-wrapper{ margin-left: 0%; }
				#Slide2:checked ~ .overflow-wrapper{ margin-left: -100%; }
				#Slide3:checked ~ .overflow-wrapper{ margin-left: -200%; }
				#Slide4:checked ~ .overflow-wrapper{ margin-left: -300%; }
 
				#Slide1:checked + #s1 { opacity: 1; }
				#Slide2:checked + #s2 { opacity: 1; }
				#Slide3:checked + #s3 { opacity: 1; }
				#Slide4:checked + #s4 { opacity: 1; }

if i am not mistaken the second selector is a sibling selector ? and whats the 1st set of selectors , never seen something like that .

will appreciate any help .

Thank You .

gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 5 years 10 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Found what it is

Found out what it is .

Thank you .