عمل ايقونات باستخدام HTML , CSS

عمل ايقونات باستخدام HTML , CSS

عمل ايقونات باستخدام HTML , CSS

 عمل ايقونات باستخدام HTML , CSS



اولا قم بعمل صفحه html و اخري css

ثانيا قم بكتابه الاكواد ⬇️ في صفحه html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- font awesome link -->
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.1.1/css/all.css">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="style.css">
  <title>icons | ahmed elbery</title>
</head>
<body>
  <ul class="icons">
    <li style="--color:#f44336"><a href="#"><i class="fa-brands fa-youtube"></i></a></li>
    <li style="--color:#2f6087"><a href="#"><i class="fa-brands fa-facebook-f"></i></a></li>
    <li style="--color:#2196f3"><a href="#"><i class="fa-brands fa-linkedin-in"></i></a></li>
    <li style="--color:#03a9f4"><a href="#"><i class="fa-brands fa-twitter"></i></a></li>
    <li style="--color:#df25b2"><a href="#"><i class="fa-brands fa-instagram"></i></a></li>
  </ul>
</body>
</html>

ثالثا قم بكتابه الاكواد الاتيه في صفحه css


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}
body{
  width: 100%;
  min-height: 100vh;
  background: #29303f;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.icons{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.icons li{
  list-style: none;
  background: #eee;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin: 20px;
}
.icons li::before{
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 5px;
  background: var(--color);
  transition: .5s;
  z-index: 2;
}
.icons li:hover:before{
  top: 97%;
}
.icons li a{
  color: transparent;
  -webkit-text-stroke: 1px var(--color);
  font-size: 6em;
  z-index: 1;
  transition: .5s ease-in;
}
.icons li:hover a{
  color: var(--color);
}

وهكذا نكون قد انتهينا من عمل ايقونات  باستخدام HTML , CSS


اذا اعجبك محتوانا فلا تنسي الاشتراك معنا 

جميع روابط 

========== Social Media ============

YouTube

Facebook

Instagram

Tik Tok

إقرأ أيضا :

تعليقات

  1. Ahmed Elbery
    رايكم في المقاله
  1. لإدخال كود <i rel="pre">ضع الكود هنا</i>
  2. لإدخال مقولة <b rel="quote">ضع المقولة هنا</b>
  3. لإدخال صورة <i rel="image">رابط الصورة هنا</i>
اترك تعليقا حسب موضوع الكتابة ، كل تعليق مع ارتباط نشط لن يظهر.
يحتفظ مسيري ومدراء المدونة بالحق في عرض, أو إزالة أي تعليق