animation media kit for css

code for css file

div.at-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.at-item {
  color: #3079ed;
  animation-name: focus-in-contract;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: none;
}
@keyframes focus-in-contract {
  0%{
    letter-spacing: 1em;
    filter: blur(12px);
    opacity: 0;
  }
  100%{
    filter: blur(0);
    opacity: 1;
  }
}

CSS properties allows us to change style of HTML element smoothly. CSS3 introduce two keywords for animation:
@keyframe and animation. Both properties can bind with any HTML element like text, div, span etc.

(1) @keyframe has a collection of CSS style properties. It is like a timeline of CSS styles.
(2) animation property can control keyframes execution sequence.

Select any predefined samples from top panel. Below samples there is a timeline of @keyframes. Timeline has 101 keyframes ( 0% to 100%) direction from left to right. Highlighted keyframe indicate that some style is assigned to that point. You can add new style at selected point.

animation properties
name: name of the animation
duration: total running time of animation ( in seconds or milliseconds )
timing-function: change the running speed ( slow start to fast end, fast to slow etc )
delay: wait few seconds or milliseconds before animation start
iteration-count: how many time repeat loop
direction: run animation in normal or reverse direction.
fill-mode: any other style apply to element before animation start or after animation end

code for html file

<div class='at-container'>
  <h1 class='at-item'>Animation
  </h1>
</div>

remove padding right from body when modal

.modal-open {
    overflow: auto;
    padding-right: 0 !important;
}

A lot of the other solutions given here break that feature, and make your content shift slightly about when the modal opens. This solution will preserve the feature of the bootstrap modal not shifting content around, but fix the bug. This is a pure css solution that keeps the bootstrap functionality as it should be.

how to make flash blinking text using css

.waitingForConnection {
  animation: blinker 1.7s cubic-bezier(.5, 0, 1, 1) infinite alternate;  
}
@keyframes blinker { to { opacity: 0; } }

.waitingForConnection2 {
  animation: blinker2 0.6s cubic-bezier(1, 0, 0, 1) infinite alternate;  
}
@keyframes blinker2 { to { opacity: 0; } }

.waitingForConnection3 {
  animation: blinker3 1s ease-in-out infinite alternate;  
}
@keyframes blinker3 { to { opacity: 0; } }
<div class="waitingForConnection">X</div>
<div class="waitingForConnection2">Y</div>
<div class="waitingForConnection3">Z</div>

Best htaccess value for opencart

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{THE_REQUEST} \ /+index\.php\?_route_=([^\ &]+)
RewriteRule ^ /%1? [L,R]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.sportuvam.bg/$1 [R,L]

remove index.php route= opencart 3

Add these three Line

RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
   RewriteCond %{REQUEST_URI} !/system/.* [NC]
   RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

After adding

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. 

 # 2. In your opencart directory rename htaccess.txt to .htaccess.

 # For any support issues please visit: http://www.opencart.com

 Options +FollowSymlinks

 # Prevent Directoy listing 
 Options -Indexes

 # Prevent Direct Access to files
 <FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
 </FilesMatch>

 # SEO URL Settings

 # If your opencart installation does not run on the main web folder make sure 
 you folder it does run in ie. / becomes /shop/ 

 RewriteEngine On
 RewriteBase /
 RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
 RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
 RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
 RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

 RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
 RewriteCond %{REQUEST_URI} !/system/.* [NC]
 RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

 ### Additional Settings that may need to be enabled for some servers 
 ### Uncomment the commands by removing the # sign in front of it.
 ### If you get an "Internal Server Error 500" after enabling any of the 
 following settings, restore the # as this means your host doesn't allow that.

 # 1. If your cart only allows you to add one item at a time, it is possible 
 register_globals is on. This may work to disable it:
 # php_flag register_globals off

 # 2. If your cart has magic quotes enabled, This may work to disable it:
 # php_flag magic_quotes_gpc Off

 # 3. Set max upload file size. Most hosts will limit this and not allow it to 
 be overridden but you can try
 # php_value upload_max_filesize 999M

 # 4. set max post size. uncomment this line if you have a lot of product 
 options or are getting errors where forms are not saving all fields
 # php_value post_max_size 999M

 # 5. set max time script can take. uncomment this line if you have a lot of 
 product options or are getting errors where forms are not saving all fields
 # php_value max_execution_time 200

 # 6. set max time for input to be recieved. Uncomment this line if you have a 
 lot of product options or are getting errors where forms are not saving all 
  fields
 # php_value max_input_time 200

common home redirect / in opencart

Find this bellow line

RewriteBase /

And paste after this

RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]

redirect http to https htaccess opencart

First Example

# Force https everywhere
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Second Example

RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

get customer details in opencart 3

Add this code in PHP file

$this->load->model('account/customer');
$data['customer_firstname']=$this->customer->getFirstName();
		$data['customer_lastname'] = $this->customer->getLastName();
		$data['customer_email']=$this->customer->getEmail();
		$data['customer_telephone']=$this->customer->getTelephone();

Add this code in TWIG file

<div class="col-md-12">
        {{ customer_firstname }} {{ customer_lastname }}
        {{ customer_email }}
        {{ customer_telephone }}
      </div>

if else if in twig file opencart

<div class="tags-veg-non">
    {% if product.isbn == 'V' %}
        <div class="tag" title="vegetarians">
          <a href="#"><div class="veg-icon">V</div></a>
            
        </div>{% elseif product.isbn == 'N' %}
    
        <div class="tag" title="non vegetarian">
          <a href="#"><div class="non-veg-icon">N</div></a>
            
        </div>{% endif %}
    
</div>

file htaccess tricks

RewriteEngine On
RewriteCond %{HTTP_HOST} ^instadiet.in [NC]
RewriteRule ^(.*)$ http://www.instadiet.in/$1 [L,R=301]

#RewriteEngine On
#RewriteCond %{HTTPS} ^on$
#RewriteRule ^(.*)$ http://www.instadiet.in/$1 [NC,L,R]


RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]



#RewriteEngine On
#RewriteCond %{SERVER_PORT} ^443$ [OR]
#RewriteCond %{HTTPS} =on
#RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

#RewriteEngine On
#RewriteCond %{HTTPS} =on
#RewriteRule ^/(.*):NOSSL$ http://www.instadiet.in/$1 [R=301,L]

#RewriteCond %{HTTP:X-Forwarded-Proto} =https
#RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]