Tuesday 29 October 2019

Diwali Animation Created Using Html and CSS







  Animation Html Code :

 

<!DOCTYPE html>
<html>
<head>
<style>
@keyframes Animation1
{
 0%{left:10px; top:10px;}
 25%{left:380px; top:10px;}
 50%{left:330px; top:230px;}
 75%{left:10px; top:230px;}
 100%{left:10px; top:10px;}
}
@keyframes Animation2
{
 0%{left:800px; top:30px;}
 25%{left:1000px; top:30px;}
 50%{left:1000px; top:230px;}
 75%{left:800px; top:230px;}
 100%{left:800px; top:30px;}
}
#img1
{
 width:70px;
 height:70px;
 position:relative;
 left:300px;
 top:20px;
 animation-name:Animation1;
 animation-duration:10s;
 animation-delay:2s;
 animation-iteration-count: 5;
}
#img2
{
 width:70px;
 height:70px;
 position:relative;
 left:800px;
 top:20px;
 animation-name:Animation2;
 animation-duration:10s;
 animation-delay:2s;
 animation-iteration-count: 5;
}
#div1

 border:0px solid blue;
 border-radius:10px;
 position:relative;
 left:460px;
 bottom:50px;
 height:400px;
 width:400px;
}
h1
{
  color:lightblue;
  font-family:tahoma;
}
</style>
</head>
<body bgcolor="black">

</hr>

<img id="img1" src="diwali.png" width="100" height="100"/>

<img id="img2" src="diwali.png" width="100" height="100"/>
<div id="div1">
<img src="happy diwali2.gif" width="400" height="400"/>
</div>
<br><br>
<h1><marquee> this Animation created by sreenu</marquee></h1>
</body>
</html>






Saturday 14 September 2019

water flow on text animation using html and css

water flow on text animation using html and css  source code view below




  in this animation we have to create two files  this are

  1.index.html
  2.style.css

Index.html:
 = = = = =
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Water Fill On Text | sandyapagasreenu.blogspot.com</title>
  <link rel="stylesheet" href="style.css">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
  <link href="https://fonts.googleapis.com/css?family=Lexend+Deca&display=swap" rel="stylesheet">

</head>
<body>
<div class="loading wave">
sandyapagasreenu.blogspot.com
</div>
<div class="loading2 wave2">
  sandyapagasreenu.blogspot.com
</div>
</body>
</html>

style.css
= = = =  =
body {
  background: #212121;
  width: 100%;
  height: 100%;
}
.loading, .loading2 {
  text-transform: lowercase;
  font-family: 'Lexend Deca', sans-serif;
  font-weight: bold;
  font-size: 60pt;
  text-align: center;
  height: 120px;
  line-height: 110px;
  vertical-align: bottom;
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  bottom: 0;
  display: block;
}
.loading2 {
  top: 240px;
}
.wave {
  background-image: url("https://webdevtrick.com/wp-content/uploads/water-wave-blue.png");
  -moz-background-clip: text;
  -o-background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 0px rgba(255, 255, 255, 0.06);
  animation: wave-animation 1s infinite linear, loading-animation 10s infinite linear alternate;
  background-size: 200px 100px;
  background-repeat: repeat-x;
  opacity: 1;
}
.wave2 {
  background-image: url("https://webdevtrick.com/wp-content/uploads/water-wave.png");
  -moz-background-clip: text;
  -o-background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 0px rgba(255, 255, 255, 0.06);
  animation: wave-animation 1s infinite linear, loading-animation 10s infinite linear alternate;
  background-size: 200px 100px;
  background-repeat: repeat-x;
  opacity: 1;
}

@keyframes wave-animation {
  0% {
    background-position: 0 bottom;
  }
  100% {
    background-position: 200px bottom;
  }
}
@keyframes loading-animation {
  0% {
    background-size: 200px 0px;
  }
  100% {
    background-size: 200px 200px;
  }
}
@media (max-width: 765px) {
  .loading, .loading2 {
    font-size: 50pt;
  }
}

Saturday 3 August 2019

Tutorial Home Page Design Using JavaScript Gradient Navigation Html and Css


Tutorial Home Page Design Using JavaScript Gradient Navigation Html and CSS :
in this We Have create 3 files there are
1.index.html
2.style.css
3.function.js

in the  Navigation part  We have to add Text or Images.




Index.html:
= = = = = =  =
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>JavaScript Gradient Navigation</title>
  <link href="https://fonts.googleapis.com/css?family=Anton&display=swap" rel="stylesheet">
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css'>
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="black">
 <center><h1>Choose Gradient Direction</h1></center>
<div class="content">
  <div class="wrap">
    <div class="inner-sec">
      <div class="btns">
        <button class="btn btn top  active" type="button"  data-dir="top"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn btn left" type="button" data-dir="left"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn  btn bottom" type="button" data-dir="bottom"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn  btn" type="button"  data-dir="right"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn  btn top-left" type="button" data-dir="top left"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn  btn top-right" type="button"  data-dir="top right"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn  btn bottom-left" type="button"  data-dir="bottom left"><i class="fas fa-long-arrow-alt-right"></i></button>
        <button class="btn  btn bottom-right" type="button"  data-dir="bottom right"><i class="fas fa-long-arrow-alt-right"></i></button>
      </div>
    </div>
  </div>
 <div class="wrap">
    <div class="inner-sec area" data-gradient="#FF3434, #FFC41E 40%, #009EE3 80%" data-gradient-direction="top">
      <div class="items">
    <a href="https://www.javatpoint.com/html-tutorial">
        <img src="img1.png" height=120 width=150/>
</a>
      </div>
      <div class="items">
  <a href="https://www.javatpoint.com/css-tutorial">
       <img src="img2.png" height=120 width=150/>
   </a>
      </div>
      <div class="items">
     <a href="https://www.javatpoint.com/javascript-tutorial">
        <img src="img3.jpg" height=120 width=150/>
</a>
      </div>
      <div class="items">
  <a href="https://www.javatpoint.com/java-tutorial">
        <img src="img4.jpg" height=120 width=150/>
</a>
      </div>
      <div class="items">
     <a href="https://www.javatpoint.com/net-framework">
        <img src="img12.jpg" height=120 width=150/>
</a>
      </div>
      <div class="items">
     <a href="https://www.javatpoint.com/angularjs-tutorial">
         <img src="img6.png" height=120 width=150/>
</a>
      </div>
      <div class="items">
  <a href="https://www.javatpoint.com/php-tutorial">
         <img src="img7.png" height=120 width=150/>
</a>
      </div>
      <div class="items">
      <a href="https://www.javatpoint.com/jquery-tutorial">
         <img src="img8.jpg" height=120 width=150/>
</a>
      </div>
      <div class="items">
    <a href="https://www.javatpoint.com/jsp-tutorial">
       <img src="img9.jpg" height=120 width=150/>
   </a>
      </div>
 <div class="items">
      <a href="https://www.javatpoint.com/nodejs-tutorial">
         <img src="img10.png" height=120 width=150/>
</a>
      </div>
      <div class="items">
      <a href="https://www.javatpoint.com/oracle-tutorial">
         <img src="img11.png" height=120 width=150/>
</a>
      </div>
      <div class="items">
     <a href="https://www.javatpoint.com/c-programming-language-tutorial">
         <img src="img12.png" height=120 width=150/>
</a>
      </div>

    </div>
  </div>
</div>
  <script  src="function.js"></script>
</body>

</html>

Style.Css :
 = = = = =  =
body {
  font-family: 'Anton', sans-serif;
  color: #212121;
  letter-spacing: 2px;
}
body a {
  color: inherit;
  text-decoration: none;
}
h1
{
color:white;
}
.btns {
  display: flex;
  justify-content: center;
}
.btn {
  transition-property: all;
  transition-duration: 0.2s;
  transition-timing-function: linear;
  transition-delay: 0s;
  padding: 20px 20px;
  margin-right: 10px;
  background-color: #fff;
  border: 2px solid #212121;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}
.btn:last-child {
  margin-right: 0;
}
.btn:hover, .btn.active {
  color: #fff;
  background-color: red;
}
.btn i {
  font-size: 1rem;
}
.content {
  max-width: 700px;
  margin: auto;
}
.wrap {
  margin-bottom: 50px;
}
h2 {
  font-weight: 500;
  text-align: center;
}
.top i {
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}
.bottom i {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
.left i {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.top-left i {
  -webkit-transform: rotate(-135deg);
          transform: rotate(-135deg);
}
.top-right i {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.bottom-left i {
  -webkit-transform: rotate(135deg);
          transform: rotate(135deg);
}
.bottom-right i {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.area {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.items {
  transition-property: all;
  transition-duration: 0.2s;
  transition-timing-function: linear;
  transition-delay: 0s;
  padding: 40px 20px;
  height: 100px;
  line-height: 100px;
  font-size: 2rem;
  text-align: center;
  color: #fff;
  border: 2px solid #212121;
  border-radius: 5px;
  cursor: pointer;
}
.items:hover {
  transform: scale(1.5);
  z-index: 9999;

}


Function.js:
 = = = = = =  =

const Area = document.querySelector('.area');
const Items = document.querySelectorAll('.items');

const gradValue = () => {
  return Area.dataset.gradient;
};
const gradDir = () => {
  return Area.dataset.gradientDirection;
};
const buildGrad = (value, direction) => {
  return `to ${direction}, ${value}`;
};

const gradSize = () => {

  let firstItemPosX = Items[0].getBoundingClientRect().left;
  let cols = 1;

  for (let i = 1; i < Items.length; i++) {
    if (Items[i].getBoundingClientRect().left > firstItemPosX) {
      cols++;
    } else {
      break;
    }
  }
  let itemPosY = Items[0].getBoundingClientRect().top;
  let rows = 1;
  for (let i = 1; i < Items.length; i++) {

    if (Items[i].getBoundingClientRect().top > itemPosY) {
      rows++;
      itemPosY = Items[i].getBoundingClientRect().top;
    }
  }
  const itemWidth = Items[0].offsetWidth;
  const itemHeight = Items[0].offsetHeight;
  let gradSizeX = itemWidth * cols;
  let gradSizeY = itemHeight * rows;
  return [gradSizeX, gradSizeY, cols, rows];
};

const colRow = () => {

  let row = 1;
  let col = 1;

  let xItemPos = Items[0].getBoundingClientRect().left;

  for (let i = 0; i < Items.length; i++) {

    if (Items[i].getBoundingClientRect().left > xItemPos) {
      col++;
    } else {
      col = 1;
    }

    Items[i].dataset.col = col;
  }

  let yItemPos = Items[0].getBoundingClientRect().top;

  for (let i = 0; i < Items.length; i++) {

    if (Items[i].getBoundingClientRect().top > yItemPos) {
      row++;
      yItemPos = Items[i].getBoundingClientRect().top;
    }
    Items[i].dataset.row = row;

  }
};

const setGrad = elem => {

  const bgImg = `linear-gradient(${buildGrad(gradValue(), gradDir())})`;

  elem.style.backgroundImage = bgImg;

  const bgSizeX = `${gradSize()[0]}`;
  const bgSizeY = `${gradSize()[1] + 5}`;

  elem.style.backgroundSize = `${bgSizeX}px ${bgSizeY}px`;

  const bgPosX = bgSizeX * (elem.dataset.col - 1) / gradSize()[2];
  const bgPosY = bgSizeY * (elem.dataset.row - 1) / gradSize()[3];

  elem.style.backgroundPosition = `${-bgPosX}px ${-bgPosY}px`;

};

const setGradientBg = () => {
  Items.forEach(elem => {

    colRow();

    setGrad(elem);

  });
};

setGradientBg();

window.addEventListener('resize', setGradientBg);

const dirBtns = document.querySelectorAll('.btn');

dirBtns.forEach(elem => {

  elem.addEventListener('click', () => {
    const dir = elem.dataset.dir;
    Area.dataset.gradientDirection = dir;
    setGradientBg();
    dirBtns.forEach(elem => elem.classList.remove('active'));
    elem.classList.add('active');

  });


});
















Tuesday 9 July 2019

arithmatic operations page using html css and javascript



<html>
<head> </head>
<body bgcolor=cyan text=orange>
<center>
<h3>Javascript Programming</h3>
<hr/>
<table>
<tr>
<th>First Number:</th>
<td><input type="text" id="t1" value=" "/></td></tr>
<tr><th>Second Number:</th>
<td><input type="text" id="t2" value=" "/><td></tr>
<tr><td><input type="button" onclick="f1()" value="sum"/>
<input type="button" onclick="f2()" value="sub"/>
<input type="button" onclick="f3()" value="mul"/>
<input type="button" onclick="f4()" value="div"/>
</td></tr>
<tr><td><p id="p1"> </p>
<p id="p2"> </p>
<p id="p3"> </p>
<p id="p4"> </p></td></tr>
<script>
function f1()
{
var obj1=document.getElementById("t1");
var obj2=document.getElementById("t2");
var obj3=document.getElementById("p1");
var x=parseInt(obj1.value);
var y=parseInt(obj2.value);
var z=x+y;
obj3.innerText="sum Results:"+z;
}
function f2()
{
var obj1=document.getElementById("t1");
var obj2=document.getElementById("t2");
var obj3=document.getElementById("p2");
var x=parseInt(obj1.value);
var y=parseInt(obj2.value);
var z=x-y;
obj3.innerText="sub Results:"+z;
}
function f3()
{
var obj1=document.getElementById("t1");
var obj2=document.getElementById("t2");
var obj3=document.getElementById("p3");
var x=parseInt(obj1.value);
var y=parseInt(obj2.value);
var z=x*y;
obj3.innerText="mul Results:"+z;
}
function f4()
{
var obj1=document.getElementById("t1");
var obj2=document.getElementById("t2");
var obj3=document.getElementById("p4");
var x=parseInt(obj1.value);
var y=parseInt(obj2.value);
var z=x/y;
obj3.innerText="div Results:"+z;
}

</script>
</table>
</center>
</body>
</html>
















Saturday 6 July 2019

Horizontal paragraphs information using html and CSS3





<html>
<head>
<style>
#div1::first-letter
{
 color:green;
 font-size:40px;
}

#div1
{
  background-color:lightyellow;
  border:2px solid green;
  padding:5px;
  text-align:justify;
  column-width:150px;
  column-rule:5px double green;
 }
</style>
</head>
<body>
 <h1 align="center">CSS3</h1>
 <hr></hr>
 <div id="div1">
Hyderabad Sunrisers  captain Mr.Scott credited his bowlers after his side 
registered a 
massive 10-wicket win over Gujarat Lions on Thursday night. Opting to bowl,
 Bhuvneshwar Kumar's four for 29 helped SRH restrict Gujarat Lions to 135 for eight on a two-paced track.

Boosted by his team's bowling performance, 
Shikhar Dhawan too roared back to form to hit an unbeaten 53 as SRH posted their second successive victory in the Indian Premier League 2016. Skipper Warner too continued with his rich vein of form to hit 74 not out off just 48 balls.
<br><br>
"I have to give credit to the bowlers. Gives us a great opportunity to play the way we want to play with the bowlers restricting the opposition. Our bowlers were fantastic. Bhuvi and Fizzy, his change of pace is very different. I faced him in Bangalore and he tried to knock my block off. It's a great art to change the pace as he does.
<br><br>
"Proud of the way the bowlers are bowling and if we keep chasing totals like this, we'll go a long way in the tournament," Warner said.
<br><br>
Man of the Match Bhuvneshwar Kumar was elated with his performance and said Aaron Finch's wicket was a big boost.<br>
<br>
"It was a big boost. He was the one who scored runs for them, won all three matches for them. Wanted to get him early on. Heavily dependent on top three, they are. If we could get them out, the team wouldn't score too many," Bhuvneshwar said. 

Sunrisers Hyderabad captain David Warner credited his bowlers after his side registered a massive 10-wicket win over Gujarat Lions on Thursday night. Opting to bowl, Bhuvneshwar Kumar's four for 29 helped SRH restrict Gujarat Lions to 135 for eight on a two-paced track.

Boosted by his team's bowling performance, Shikhar Dhawan too roared back to form to hit an unbeaten 53 as SRH posted their second successive victory in the Indian Premier League 2016. Skipper Warner too continued with his rich vein of form to hit 74 not out off just 48 balls.
<br><br>
"I have to give credit to the bowlers. Gives us a great opportunity to play the way we want to play with the bowlers restricting the opposition. Our bowlers were fantastic. Bhuvi and Fizzy, his change of pace is very different. I faced him in Bangalore and he tried to knock my block off. It's a great art to change the pace as he does.
<br><br>
"Proud of the way the bowlers are bowling and if we keep chasing totals like this, we'll go a long way in the tournament," Warner said.
<br><br>
Man of the Match Bhuvneshwar Kumar was elated with his performance and said Aaron Finch's wicket was a big boost.<br>
<br>
"It was a big boost. He was the one who scored runs for them, won all three matches for them. Wanted to get him early on. Heavily dependent on top three, they are. If we could get them out, the team wouldn't score too many," Bhuvneshwar said. 
 </div>

</body>
</html>

Wednesday 3 July 2019

Student information form using html and css


<html>
<head>
<style>

h1
  { 
    color:green;
text-decoration:yellow;
  }
</style>
</head>
<body>
<table>
<center>
<h1>Student Form </h1>
<hr/>
<form id="form1" autocomplete="off" action="Register.java" method="GET">
Student Name:
<input type="text" name="t1" autofocus required />
<br/> <br/>
Student Age:
<input type="number" min="20" max="100" name="t2"/>
<br/> <br/>
Email ID:
<input type="email" name="t3"/>
<br/> <br/>
Pin code:
<input type="text" name="t4" pattern="\d{6}"/>
<br/> <br/>
Join Date:
<input type="date" name="t5" />
<br/> <br/>
are you agree terms and conditions?
<input form="form1" type="checkbox" name="ck1" value="yes" /><br/><br/>
<input type="submit" value="Register"/>
</form><br/>
</center>
</body>
</html>















Tuesday 2 July 2019

text styles in css3 using a web pages



<!DOCTYPE html>
<html>
<head>
<style>
p
{
 border:2px solid blue;
 padding:4px;
}
h1
{
 color:blue;
 fozt-size:50px;
 text-align:center;
 text-shadow:0px 0px 10px red;
}
h3
{
 border:2px solid green;
 text-align:center;
}

</style>
</head>
<body>
<h1>Text Styles of CSS3</h1>
<hr/>
<p style="text-align:justify;word-spacing:10px;">
this we page is developed by using css3 text styles</p>

<h3 style="letter-spacing:10px;">Aurora's Technology & Management Academy</h3>

<h3 style="text-transform:uppercase;">Aurora's Technology & Management Academy</h3>
<h3 style="text-transform:lowercase;">Aurora's Technology & Management Academy</h3>
<h3 style="text-transform:capitalize;">Aurora's Technology & Management Academy</h3>
<h3 style="text-decoration:underline;">Aurora's Technology & Management Academy</h3>
<h3 style="padding-top:10px;text-decoration:overline;">Aurora's Technology & Management Academy</h3>
<h3 style="text-decoration:line-through;">Aurora's Technology & Management Academy</h3>

</body>
</html>