You can get trading cards simply by playing one of the participating games. As you play, you'll occasionally receive trading card drops which will be placed in your Steam Inventory.