Categories
codeofaninja.com

12 Animated HTML and CSS Logo Examples You’ll Love

I’m still amazed by these people creating and coding logos using only the HTML and CSS technology, I was like, look Ma, no Images and JavaScript!

So here are some of those amazing HTML and CSS logo examples that I recently found on the web (some are not actually logos but they can be used as logos). Click the title of each items below to view its code and live demo!

HTML and CSS Logo Examples:

1. Optical Spinner

1-optical-spinner-animated-css-html-logo-1

2. Alien Bot

animated-css-html-logo-2

3. Tape Recorder

3-tape-recorder-animated-css-html-logo

4. Jarvis

3-jarvis-animated-css-html-logo

5. Snow Pyramid

5-snow-pyramid-animated-css-html-logo

6. Psychedelic Spiral Wormhole

6-black-hole-animated-css-html-logo

7. Lemon Slice in Water

2-lemon-slice-in-water-animated-css-html-logo-1

8. Lazy Cute Red Pet

8-lazy-cute-red-pet-animated-css-html-logo-1

9. Smooth Camera

9-smooth-camera-animated-css-html-logo-1

10. Minion with Superman Mode – JavaScript were used only for changing to Superman mode.

10-minion-superman-animated-css-html-logo

11. Rotating Window

11-windows-animated-css-html-logo

12. Pixel Perfect Ubuntu

12-pixel-perfect-ubuntu-animated-css-html-logo

I want to grow this list. If ever you want to add your own work or you know something the same or more awesome, please drop it in the comments section below! Any comments and suggestions are also welcome!

You think they are awesome too? Feel free to share this awesome HTML and CSS logo examples!

Categories
www.infilon.com

Can Tom Brady be an albatross


Both the NFL and Tom Brady seem determined to stretch out Deflategate provided possible, Doing nobody associated with this mess any favors. But while Brady himself might believe he’s doing what’s best for his long term popularity and legacy, He might be hurting his long term sponsorship potentials.

To sense of humor: Brady doesn’t have endorsement dollars. He’s earned nearly $150 million to date just from his documents, And the money he pulls in from endorsement deals is a comparatively paltry $7 million a year. His noticably sponsors are Under Armour, Movado so UGG, None of possess addressed the NFL’s decision to uphold Brady’s four game suspension. The typical consensus among marketing experts is that Deflategate might not affect Brady’s current deals, But the fallout from it could deter other programs from signing him in the future. Survive month, Under Armour ceo Kevin Plank stressed his support for Brady, Labeling him”As honest as your day is long” As well as”One of the most popular people on earth,

It will be attention-grabbing to see if Plank and Under Armour maintain their love for Brady now that he’s suing the league(Along withe players’ institute). Presently, The actual merits of the case are incomprehensible: Did Tom Brady taken advantage of? Or perhaps. Is due route in the NFL a farce? Probably. Moderately, The legal fight moving forward is about both sides preserving their image. Brady is keeping up his innocence to ensure his legacy and marketability post retirement, Which unfortunately could come sooner than you think. But he might have hurt his prospects by choosing not to just come out early on and apologize for whatever happened to those footballs, Or accepting the NFL’s offer to cut his revocation by two games if he publicly admitted guilt.

Recently, He’s suing the little group, And Under Armour could have a choice on their hands within a short time. The gear and apparel maker has had a spectacular year, Riding its shift toward athletic shoes and athletic gear to $783.6 million in revenues. On send out earnings call last week, Plank added this bump largely to three marquee athlete endorsers: Stephen Curry, Michael the air nike jordans Spieth and Misty Copeland. It’s appealing that he’d leave out Brady just a few weeks after professing his love for him, But it’s more interesting to look at where he plans on taking the corporation next. Under Armour is expected to make a push to break into the major american sports leagues, And the NFL will be the white whale of exclusive apparel deals.

The best opportunity would be with the NHL, Whose cover Reebok runs through 2016 17. Adidas, Which Under Armour overtook this year to become the second biggest domestic athletic apparel brand, Is rumored to have an interest as well. The NBA and Nike just signed an eight year deal from the 2017 18 season, Putting basketball off the marketplace for the next decade. The actual, MLB and Majestic Athletic extended their alliance through 2019 back in March.

The NFL can also get an opening in 2019, Having just added another many years to its unusually short five year deal with Nike. Under Armour already lost out on the bidding regarding NBA contract, So we have seen much talk among sport business experts of it making a major play on the football field. Nike does seem somewhat occupied with Under Armour crowding into its space; To be able to Sports Business Journal, The NFL extension blocks Under Armour from the enterprise. Right at this moment, Under Armour is fighting at the margins: It outfits members of the squad for the NFL combine and has a $90 million contract with Notre Dame, The largest ever in college football games.

In the case when Under Armour does make its much speculated attempt at the NFL, Persevering with to have on its payroll a player who has sued the league could throw a wrench into that plan. It’s not necessary to, If the NFL is still equipped with legal success, The court room fight might be a short one, Giving us all the more time to lose interest in Brady’s indiscretions.

This column does certainly not reflect the opinion of the editorial board or Bloomberg LP and its owners.

Categories
codeofaninja.com

CakePHP 2.x Pagination Tutorial: Helper, Conditions, Limit, Sorting and More!

CakePHP Pagination is one of the fastest thing you can code with this amazing framework. In this post I’m gonna show you how you can create a pagination script in matter of few minutes, or even seconds! Cool? Let’s get started.

This post is part of my CakePHP tutorial series, before you proceed to this, make sure you already installed your CakePHP poperly, know the CakePHP classes and naming conventions, and much better if you can code the CakePHP CRUD operations.

Video Demo

Here’s a video demo of what will be our code ouput.

Controller Code

On our controller, we are going to have a query the cakePHP way, we are going to have the following conditions:

  • Won’t include the record with an ID of 6 (‘conditions’ => array(‘User.id !=’ => ’6′))
  • We will limit to 3 records per page (‘limit’ => 3)
  • Order the result by ID (‘order’ => array(‘id’ => ‘desc’)) in descending order

So here’s the code that will be added in our UsersController.php

public function view() {

    // we prepare our query, the cakephp way!
    $this->paginate = array(
        'conditions' => array('User.id !=' => '6'),
        'limit' => 3,
        'order' => array('id' => 'desc')
    );
    
    // we are using the 'User' model
    $users = $this->paginate('User');
    
    // pass the value to our view.ctp
    $this->set('users', $users);
    
}

The $users variable gives us an array that look like this:

cakephp-pagination

View Code

On our view.ctp, our data is presented with a table. The table header contains the paginator sort() method for sorting the data using any fields you want (and you won’t have to create another query!)

The $this->Paginator object (pagination helper) also has lots of methods for paging, please see the ‘pagination section’ on the code block below.

Also we used the <div class=’paging’> which uses the CakePHP generic CSS. You can change that if you want and be creative with your paging UI design.

<?php
// so we use the paginator object the shorter way.
// instead of using '$this->Paginator' everytime, we'll use '$paginator'
$paginator = $this->Paginator;

if($users){

    //creating our table
    echo "<table>";

        // our table header, we can sort the data user the paginator sort() method!
        echo "<tr>";
        
            // in the sort method, ther first parameter is the same as the column name in our table
            // the second parameter is the header label we want to display in the view
            echo "<th>" . $paginator->sort('id', 'ID') . "</th>";
            echo "<th>" . $paginator->sort('firstname', 'Firstname') . "</th>";
            echo "<th>" . $paginator->sort('lastname', 'Lastname') . "</th>";
            echo "<th>" . $paginator->sort('username', 'Username') . "</th>";
        echo "</tr>";
        
        // loop through the user's records
        foreach( $users as $user ){
            echo "<tr>";
                echo "<td>{$user['User']['id']}</td>";
                echo "<td>{$user['User']['firstname']}</td>";
                echo "<td>{$user['User']['lastname']}</td>";
                echo "<td>{$user['User']['username']}</td>";
            echo "</tr>";
        }
        
    echo "</table>";

    // pagination section
    echo "<div class='paging'>";

        // the 'first' page button
        echo $paginator->first("First");
        
        // 'prev' page button, 
        // we can check using the paginator hasPrev() method if there's a previous page
        // save with the 'next' page button
        if($paginator->hasPrev()){
            echo $paginator->prev("Prev");
        }
        
        // the 'number' page buttons
        echo $paginator->numbers(array('modulus' => 2));
        
        // for the 'next' button
        if($paginator->hasNext()){
            echo $paginator->next("Next");
        }
        
        // the 'last' page button
        echo $paginator->last("Last");
    
    echo "</div>";
    
}

// tell the user there's no records found
else{
    echo "No users found.";
}
?>

Thanks for reading this tutorial code for pagination in CakePHP!