Vanithasree has Published 85 Articles

CSS animation-timing-function property

vanithasree

vanithasree

Updated on 24-Jun-2020 06:09:11

75 Views

You can try to run the following code to implement the animation-timing-function property:ExampleLive Demo                    div {             width: 150px;             height: 200px;             position: relative;             background-color: yellow;             animation-name: myanim;             animation-duration: 2s;             animation-direction: alternate-reverse;             animation-iteration-count: 3;          }          @keyframes myanim {             from {left: 100px;}             to {left: 200px;}          }          #demo1 {animation-timing-function: ease;}          #demo2 {animation-timing-function: ease-in;}                     ease effect       ease-in effect    

Set an animation with a slow start and end using CSS

vanithasree

vanithasree

Updated on 24-Jun-2020 05:55:41

231 Views

Use the animation-timing-function property, with the ease-in-out value to set animation with a slow start and end with CSS:ExampleLive Demo                    div {             width: 150px;             height: 200px;             position: relative;             background-color: #808000;             animation-name: myanim;             animation-duration: 2s;             animation-direction: alternate-reverse;             animation-iteration-count: 3;          }          @keyframes myanim {             from {left: 100px;}             to {left: 200px;}          }          #demo {animation-timing-function: ease-out;}                     ease-in-out effect    

Which CSS property is used to run Animation in Alternate Cycles?

vanithasree

vanithasree

Updated on 23-Jun-2020 15:50:37

109 Views

Use the animation-direction property to run animation in an alternate direction. The property is used with the alternate animation value to achieve this.ExampleLive Demo                    div {             width: 150px;             height: 200px;             background-color: yellow;             animation-name: myanim;             animation-duration: 2s;             animation-direction: alternate;             animation-iteration-count: 3;          }          @keyframes myanim {             from {                background-color: green;             }             to {                background-color: blue;             }          }                        

How can we write PHP script to count the affected rows by MySQL query?

vanithasree

vanithasree

Updated on 22-Jun-2020 14:30:45

256 Views

PHP uses mysql_affected_rows( ) function to find out how many rows a query changed. To illustrate it we are having the following example −Example           Rows affected by query                  

Which PHP function is used to delete an existing database?

vanithasree

vanithasree

Updated on 22-Jun-2020 13:21:36

75 Views

PHP uses a mysql_query function to delete a MySQL database. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −Syntaxbool mysql_query( sql, connection );Followings are the parameters used in this function −Sr. No.Parameter & Description1RequiredSQL query to delete a MySQL database2Optionalif ... Read More

String Formatting in C# to add padding on the right

vanithasree

vanithasree

Updated on 22-Jun-2020 13:07:37

181 Views

To add padding on the right to a string −const string format = "{0, 10}";Now add it to the string −string str1 = string.Format(format, "Marks", "Subject");Let us see the complete code −Example Live Demousing System; public class Program {    public static void Main() {       // ... Read More

How do you convert a list collection into an array in C#?

vanithasree

vanithasree

Updated on 22-Jun-2020 13:05:09

735 Views

Firstly, set a list collection −List < string > myList = new List < string > (); myList.Add("RedHat"); myList.Add("Ubuntu");Now, use ToArray() to convert the list to an array −string[] str = myList.ToArray();The following is the complete code −Example Live Demousing System; using System.Collections.Generic; public class Program {    public static ... Read More

How can we enter numerical values as a BINARY number in MySQL statement?

vanithasree

vanithasree

Updated on 22-Jun-2020 12:21:32

63 Views

Following are the two approaches with the help of which we can enter numeric values as a BINARY number −By prefix ‘B’In this approach we need to quote binary numbers within single quotes with a prefix of B. Then BINARY number string will be automatically converted into a numerical value ... Read More

Why in MySQL, we cannot use arithmetic operators like ‘=’, ‘<’ or ‘<>’ with NULL?

vanithasree

vanithasree

Updated on 22-Jun-2020 11:31:08

133 Views

The reason behind it is that we will not receive any meaningful results from the comparisons when we use NULL with the comparison operators like ‘=’, ‘ Select 10 = NULL, 10< NULL, 10NULL; +-----------+----------+----------+ | 10 = NULL | 10< NULL | 10NULL | +-----------+----------+----------+ |      NULL ... Read More

What are the restrictions, in terms of a number of rows and columns, with MySQL query having no table list?

vanithasree

vanithasree

Updated on 22-Jun-2020 10:51:26

47 Views

The restriction on MySQL query having a notable list is that it can return, as a result, exactly one row but that result can contain multiple columns.Examplemysql> Select 65/NULL, 65+NULL, 65*NULL, 65-NULL, 65%NULL; +------------+--------------+-------------+-------------+---------+ | 65/NULL    | 65+NULL      | 65*NULL     | 65-NULL     | ... Read More

Advertisements