✍️
cssadvand
cssadvand
cssadvand
  • [BEM] Exploring SMACSS: Scalable and Modular Architecture for CSS
  • aspect-ratio thuộc tính giúp tạo hình vuông tuyệt đối square (ok)
  • Animation Anh Huy
    • Ứng dụng
      • Áp dụng thực tế
  • 😀CSS-only infinite scrolling carousel animation (ok)
  • css carousel
  • Rotate3d sử dụng các tham số như nào?
  • 🤡 Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 1)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 2)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 3)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 4)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 5)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 6)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 7)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 8)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 9)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 10)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 11)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 12) [Phần đặc biệt]
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 13)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 14)
  • 😘Thuộc tính tabindex="-1" không ngờ lại nguy hiểm vậy đọc bài dưới 😌
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 15)
  • 🥸CSS tạo theme cho dark mode đọc bài (Phần 16)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 16)
  • Mẹo để optimize Google Fonts API mà ít dev để ý đọc (Phần 17)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 17)
  • Thật may nhờ có white-space: pre-line đọc (Phần 18)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 18)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 19)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 20)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 21)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 22)
  • Thuộc tính image-rendering nhờ bài (Phần 23) mà phát hiện ra cách làm bức ảnh mờ trở nên rõ nét
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 23)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết 🤡
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 24)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 25)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 26)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 27)
  • 😘mix-blend-mode pha trộn giữa 1 đối tượng với đối tượng bên dưới đó (Phần 28)
    • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 28)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 29)
  • 🥸aspect-ratio (Phần 30)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 30)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 31)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 32)
  • Một vài thủ thuật CSS mà chính Frontend có thể còn chưa biết (Phần 33)
  • 😘CSS Scroll Triggered Animations Full (ok)
  • 🥹Difference between animation and transition in CSS
  • 😄animation-timeline có phải nó làm việc với thanh cuộn (ok)
  • 😍Từ bài animation-timeline làm việc với thanh cuộn tìm ra cách sử dụng background-clip: text;
  • background-clip: text;
  • 😅Sử dụng list-style-type để tạo icon đẹp (ok)
  • 😁Convert css to scss good (ok)
  • 😁CSS - Hướng dẫn: Tạo ảnh động với hàm steps()
  • 😆Multiple image cross fading in CSS - without (java) khá đẹp script (ok)
  • 😇Function css full 🤩
  • 😅[SVG] SVG viewBox Attribute (ok)
  • 😅Tailwind CSS (ok)
  • 😍Thật không thể tin được sử dụng filter: brightness(0) invert(1); để chuyển màu ảnh 🤣
  • 😅Background text matter.vn (ok)
  • 😆Chọn màu, color, color contrast ratio (ok)
  • 😁Tổng hợp Animating SVG text cực đẹp (ok)
  • 😂Chuyển động tròn :(
  • 😆MOVE-BG mepop.vn (ok)
  • 😆Counter Increment list, number xuongkhopbacninh.com (ok)
  • Boxes That Fill Height, full Height(Or More) (and Don’t Squish) (ok)
  • Equal Height (chiều cao bằng nhau) (oK)
  • 😅Sử dụng nodejs và scss cấu trúc thư mục tốt P.1(ok)
  • 🥲Sử dụng nodejs và js cấu trúc thư mục tốt P.2 (ok)
  • === START STUDY P.1 && P.2 SỬ DỤNG NODEJS VÀ CẤU TRÚC ===
  • 😉1 Giao diện sử dụng thuộc tính data-coreui-toggle="dropdown" (ok)
  • === END STUDY P.1 && P.2 SỬ DỤNG NODEJS VÀ CẤU TRÚC ===
  • 😆Css box-shadow đẹp (ok)
  • === START Tutorials Classical BEM stack ===
  • 😀HTML with BEM (ok)
  • 😀CSS with BEM (ok)
  • === END Tutorials Classical BEM stack ===
  • === START SMACSS ===
  • Categorizing CSS Rules
  • Base Rules
  • Layout Rules
  • Module Rules
  • State Rules
  • Theme Rules
  • Changing State
  • === END SMACSS ===
  • All CSS Grid Properties (ok)
  • 😇Column Grid full example(Responsive)
  • === Start Điều quan trọng nhất cách chia cột và thay đổi vị trí ===
  • CSS Grid căn bản - Phần 1
  • CSS Grid căn bản - Phần 2
  • CSS Grid: Holy Grail Layout
  • Sử dụng CSS Grid để xây dựng web layout
  • Luyện tập CSS Grid qua bài tập tạo layout Airbnb, youtube, Pinterest
  • === End Điều quan trọng nhất cách chia cột và thay đổi vị trí ===
  • Overflow:hidden dots at the end full (ok)
  • Gulp để viết Sass && cai dat
  • Cách nhúng font vào svg (ok)
  • font-face Hướng dẫn conver font và nhúng sử dụng online (ok)
  • 😇Create CSS Animations on Scroll (ok)
  • Hiệu ứng hover bằng js hiện phần description (ok)
  • Text Link on Hover phần 1 (ok)
  • Kết hợp transition & transform-origin phần 2 (ok)
  • Text Hover Phần 3 (ok)
  • Social Media Icons hover effect (ok)
  • css rotate a pseudo :after or :before content:""
  • Hiệu ứng ảnh tự zoom, animation, scale phần 1 full (ok)
  • CodePen Home Image zoom on hover - auto run - view (ok)
  • scroll-padding (ok)
  • Tạo vòm giống styleathome (ok)
  • Tổng hợp những css đẹp để làm trang trí (ok)
  • Cách thay đổi màu svg full (ok_)
  • Disable Auto Zoom in Input “Text” tag - Safari on iPhone (ok)
  • function calc css (ok)
  • Get the scroll distance from bottom to scroll, var distanceFromBottom (ok) vinmec.com (ok)
  • ---------- Start CSSscan không sử dụng ----------------------
  • Unused CSSscan your website for unused CSS selectors (ok)
  • PurifyCSS OnlineRemove unused CSS code from your stylesheets (ok)
  • Remove unused CSS styles from Bootstrap using PurgeCSS (ok)
  • 😆Thêm column, media bootstrap, custom bootstrap (ok)
  • ---------- End CSSscan không sử dụng ----------------------
  • Xây dựng blog đơn giản (Node + React)
  • Các tham số của Gulp
  • File đã thực hành với Gulp (ok
  • gulp-livereload (chưa đọc)
  • Tối ưu hiệu năng Google Fonts (ok)
  • Cách nhúng font dùng 1 tên và chỉ khác src, font-weight (ok)
  • Học CSS GRID thông qua những layout phức tạp
  • [GRID] sử dụng grid xây dựng layout giống Masonry (ok)
  • PageSpeed Insights Chrome Extension (ok)
  • Tăng tốc website bằng cách cải thiện front-end
  • Code chuẩn SEO là gì
  • 10 CSS3 Animation Tools phổ biến
  • Trang check SEO OKE
  • Làm sao để SEO từ khóa?
  • Kiểm soát web typography với việc hiển thị CSS font (ok)
  • Các mẫu phông chữ hiển thị và thuộc tính hiển thị phông chữ của CSS
  • Một số mẹo tối ưu hóa HTML/CSS/JS đúng chuẩn
  • Web Performance
  • Preload, Prefetch, Preconnect (ok)
  • Tối ưu hóa phần Front end cho trình duyệt (part 1)
  • Tối ưu hóa phần Front end cho trình duyệt (part 2)
  • Sử dụng thuộc tính attr html && css (ok)
  • Disable Auto Zoom in Input “Text” tag - Safari on iPhone (ok)
  • CSS submit button weird rendering on iPad/iPhone submit color (ok)
  • Turn off iPhone/Safari input element rounding (ok)
  • scroll bongda.com.vn (ok)
  • Làm chiếc xe ô tô chuyển động giống 2020.yp.vn (ok)
  • Sự khác biệt giữa :empty và :blank trong CSS (ok)
  • Is there a CSS parent selector? (ok)
Powered by GitBook
On this page
  • Example 1
  • Example 2
  • Example 3 (Infinite Horizontal Scroll Animation | Infinite Scrolling Animation CSS Only)

Was this helpful?

Create CSS Animations on Scroll (ok)

Previousfont-face Hướng dẫn conver font và nhúng sử dụng online (ok)NextHiệu ứng hover bằng js hiện phần description (ok)

Last updated 9 months ago

Was this helpful?

Example 1

C:\Users\Administrator\OneDrive\Desktop\code\index.html

<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Document</title>
		<link rel="stylesheet" href="style.css">
	</head>

	<body>
		<div class="wrap">
			<div class="one">
				<h3> Laravel Jobs </h3>
				<p> The official Laravel job board connecting the best jobs with top&nbsp;talent. </p>
			</div>
			<div class="two">
				<div class="animate-scroll-slower">
					<div class="animate_inner">
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 1.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 2.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 3.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 4.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 5.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 6.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 7.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 8.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 9.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 10.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 1.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 2.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 3.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 4.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 5.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 6.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 7.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 8.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 9.</a>
						<a href="#" title="Test">Lorem ipsum dolor sit, amet 10.</a>
					</div>
				</div>
			</div>
		</div>
	</body>

</html>

C:\Users\Administrator\OneDrive\Desktop\code\style.css

.wrap {
  width: 800px;
  margin: 0 auto;
  background-color: #000;
  display: flex;
  position: relative;
  margin-top: 150px;
}
h3 {
  color: #d62419;
  font-size: 50px;
}
a {
  text-decoration: none;
  display: block;
  background-color: #b2b2b3;
  color: #fff;
  padding: 10px 5px;
  margin: 5px 0;
}
.one {
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 70%;
  max-width: 70%
}
.two {
  overflow: hidden;
  position: absolute;
  top: 0;
  height: 100%;
  right: 0;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 30%;
  max-width: 30%
}
p {
  color: #fff;
}
.animate-scroll-slower {
  animation: scroll 15s linear infinite;
}
@keyframes scroll {
  0% {
    transform: translateY(0)
  }
  to {
    transform: translateY(-50%)
  }
}

Example 2

C:\xampp82\htdocs\html\test.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="test.css">
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <!-- Libs CSS -->
  <!-- Theme CSS -->
</head>
<body>
  <div class="row">
    <div class="col-lg-12 col-12">
      <div class="marquee h-auto">
        <div class="track d-flex gap-4">
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/landing-saas-v1.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/landing-saas-v2.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/creative-agency-template.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-5.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/landing-accounting.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero//landing-saas-finance.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/modern-conference-landing-template.jpg"
              alt="Image" class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/clean-perosnal-template.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-2.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/creative-agency-template.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/landing-saas-v1.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-4.jpg" alt="Image"
              class="rounded-3 border">
          </div>
        </div>
      </div>
    </div>
    <div class="col-lg-12 col-12">
      <div class="marquee h-auto">
        <div class="track-2 d-flex gap-4 py-3">
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-1.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-9.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-3.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-8.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/clean-perosnal-template.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-1.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-6.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-4.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/landings/overview/overview-img-2.jpg" alt="Image"
              class="rounded-3 border">
          </div>
          <div>
            <img src="https://block.codescandy.com/assets/images/hero/creative-agency-template.jpg" alt="Image"
              class="rounded-3 border">
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
</html>

C:\xampp82\htdocs\html\test.scss

.row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-top: calc(var(--bs-gutter-y) * -1);
}
.col-12 {
  flex: 0 0 auto;
  width: 100%;
}
.col-lg-12 {
  flex: 0 0 auto;
  width: 100%;
}
.d-flex {
  display: flex !important;
}
.h-auto {
  height: auto !important;
}
.marquee {
  height: 65px;
  line-height: 4.5;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: 100vw;
  img {
    max-width: 320px;
  }
}
.marquee .track {
  animation: marquee 100s linear infinite;
}
.marquee .track,
.marquee .track-2 {
  white-space: nowrap;
  will-change: transform;
}
.marquee .track-2 {
  animation: marquee-left 100s linear infinite;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marquee-left {
  to {
    transform: translateX(0);
  }
  0% {
    transform: translateX(-50%);
  }
}

Example 3 (Infinite Horizontal Scroll Animation | Infinite Scrolling Animation CSS Only)

😇
https://raw.githubusercontent.com/constgenius/InfiniteScroll/main/styles.css
https://github.com/constgenius/InfiniteScroll/blob/main/index.html
GitHub - constgenius/InfiniteScroll: Infinite Horizontal Scroll Animation | Infinite Scrolling Animation CSS OnlyGitHub
Logo
498KB
InfiniteScroll-main.zip
archive