- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Nishtha Thakur has Published 568 Articles
Nishtha Thakur
98 Views
To implement animation on padding-right property with CSS, you can try to run the following code:ExampleLive Demo div { width: 350px; height: 150px; outline: 3px solid orange; animation: myanim 3s infinite; } @keyframes myanim { 30% { padding-right: 60px; } } CSS padding-right property
Nishtha Thakur
952 Views
To implement animation on padding-bottom property with CSS, you can try to run the following code:ExampleLive Demo div { width: 350px; height: 150px; outline: 3px solid blue; animation: myanim 3s infinite; } @keyframes myanim { 50% { padding-bottom: 30px; } } CSS padding-bottom property
Nishtha Thakur
274 Views
To play randomly, add the songs like this −init ([ 'http://demo.com/songs/song1.mp3, 'http://demo.com/songs/song2.mp3, 'http://demo.com/songs/song3.mp3 ]);Use the following to play randomly using Math.random −function displayRandom() { var audio = Math.floor(Math.random() * (collection.length)); audio = collection[audio]; audio.play(); setTimeout(loop, audio.duration*1000); }Read More
Nishtha Thakur
198 Views
Use the translate() method to translate canvas. HTML5 canvas provides a translate(x, y) method which is used to move the canvas and its origin to a different point in the grid.Here argument x is the amount the canvas is moved to the left or right, and y is the amount ... Read More
Nishtha Thakur
998 Views
To position text to bottom left, use the bottom and right property. You can try to run the following code to position text to bottom right on an image:ExampleLive Demo .box { position: relative; ... Read More
Nishtha Thakur
107 Views
Use the column-gap property to set the gap between the columns. You can try to run the following code to implement the column-gap property, with value 50px:ExampleLive Demo .demo { column-count: 4; ... Read More
Nishtha Thakur
187 Views
To set-top tooltip, use the bottom CSS property.You can try to run the following code to set-top tooltip to a text:ExampleLive Demo .mytooltip .mytext { visibility: hidden; width: 140px; background-color: blue; ... Read More